Champ note de Game : ajout de blank=True + corrections mineures des migrations
This commit is contained in:
parent
c55fdf3e38
commit
5ba6193d4b
@ -28,6 +28,6 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='game',
|
||||
name='note',
|
||||
field=models.CharField(help_text='Short note displayed to your followers.', max_length=150, null=True, verbose_name='Progress note'),
|
||||
field=models.CharField(help_text='Short note displayed to your followers.', max_length=150, null=True, blank=True, verbose_name='Progress note'),
|
||||
),
|
||||
]
|
||||
|
51
collection/games/migrations/0005_auto_20170831_1211.py
Normal file
51
collection/games/migrations/0005_auto_20170831_1211.py
Normal file
@ -0,0 +1,51 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.4 on 2017-08-31 12:11
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('games', '0004_add_game_note_field'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='game',
|
||||
name='note',
|
||||
field=models.CharField(blank=True, help_text='Courte note affichée à ceux qui vous suive', max_length=150, null=True, verbose_name='Note de progression'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='game',
|
||||
name='playing',
|
||||
field=models.BooleanField(default=False, help_text='Vous jouez actuellement à ce jeu.', verbose_name="en train d'y jouer ?"),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='game',
|
||||
name='status',
|
||||
field=models.CharField(choices=[('created', 'Nouveau'), ('beaten', 'Terminé (quête principale)'), ('completed', 'Terminé complètement'), ('excluded', 'Exclu'), ('mastered', 'Usé / Épuisé'), ('unfinished', 'Inachevé')], default='unfinished', max_length=30, verbose_name='état'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='game',
|
||||
name='unplayed',
|
||||
field=models.BooleanField(default=False, help_text="Vous n'avez jamais joué à ce jeu.", verbose_name='jamais joué ?'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='game',
|
||||
name='wish',
|
||||
field=models.BooleanField(default=False, help_text='Vous patientez que le père Noël vous offre ce jeu.', verbose_name="envie de l'avoir ?"),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='timeline',
|
||||
name='item',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='games.Game', verbose_name='jeu'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='timeline',
|
||||
name='status',
|
||||
field=models.CharField(choices=[('created', 'Nouveau'), ('beaten', 'Terminé (quête principale)'), ('completed', 'Terminé complètement'), ('excluded', 'Exclu'), ('mastered', 'Usé / Épuisé'), ('unfinished', 'Inachevé')], default='created', max_length=30, verbose_name='état'),
|
||||
),
|
||||
]
|
@ -45,6 +45,7 @@ class Game(Item):
|
||||
note = models.CharField(
|
||||
max_length=150,
|
||||
null=True,
|
||||
blank=True,
|
||||
verbose_name=_('Progress note'),
|
||||
help_text=_('Short note displayed to your followers.'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user