Champ note de Game : ajout de blank=True + corrections mineures des migrations

master
Olivier DOSSMANN 2017-08-31 14:15:16 +02:00
parent c55fdf3e38
commit 5ba6193d4b
3 changed files with 53 additions and 1 deletions

View File

@ -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'),
),
]

View 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'),
),
]

View File

@ -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.'))