Add default ordering for Recette and Ingredient
This commit is contained in:
parent
491b7a33cf
commit
27947907d5
2 changed files with 8 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ class Migration(migrations.Migration):
|
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('nom', models.CharField(max_length=200, verbose_name='Nom')),
|
||||
],
|
||||
options={'ordering': ('nom',)},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Recette',
|
||||
|
|
@ -35,6 +36,7 @@ class Migration(migrations.Migration):
|
|||
('source', models.CharField(blank=True, max_length=200, verbose_name='Source')),
|
||||
('ingredients', models.ManyToManyField(blank=True, through='recette.Composition', to='recette.Ingredient')),
|
||||
],
|
||||
options={'ordering': ('nom',)},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Unite',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue