diff --git a/collection/games/migrations/0004_add_game_note_field.py b/collection/games/migrations/0004_add_game_note_field.py index cfc7ccb..9d077fd 100644 --- a/collection/games/migrations/0004_add_game_note_field.py +++ b/collection/games/migrations/0004_add_game_note_field.py @@ -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'), ), ] diff --git a/collection/games/migrations/0005_auto_20170831_1211.py b/collection/games/migrations/0005_auto_20170831_1211.py new file mode 100644 index 0000000..d62c6c8 --- /dev/null +++ b/collection/games/migrations/0005_auto_20170831_1211.py @@ -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'), + ), + ] diff --git a/collection/games/models.py b/collection/games/models.py index d1ba379..0acc296 100644 --- a/collection/games/models.py +++ b/collection/games/models.py @@ -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.'))