Add Recette.saison and allow search on it

This commit is contained in:
Claude Paroz 2018-05-26 17:59:13 +02:00
parent d1eef00e7d
commit ff4d7a5810
6 changed files with 73 additions and 4 deletions

View file

@ -0,0 +1,17 @@
from django.db import migrations, models
from recette.fields import ChoiceArrayField
class Migration(migrations.Migration):
dependencies = [
('recette', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='recette',
name='saison',
field=ChoiceArrayField(base_field=models.CharField(blank=True, choices=[('printemps', 'Printemps'), ('été', 'Été'), ('automne', 'Automne'), ('hiver', 'Hiver')], max_length=10), default=[], size=None, verbose_name='Saison'),
preserve_default=False,
),
]