Renamed StoredIngredients to StoredIngredient

This commit is contained in:
2020-02-19 13:21:06 +01:00
parent 8879d7c5aa
commit f4506d8a7e
2 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ class Migration(migrations.Migration):
],
),
migrations.CreateModel(
name='StoredIngredients',
name='StoredIngredient',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('amount', models.PositiveIntegerField(help_text='Please specify the stored amount of the ingredient', verbose_name='Amount')),
@ -122,7 +122,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='pantry',
name='ingredients',
field=models.ManyToManyField(through='food_planner.StoredIngredients', to='food_planner.Ingredient'),
field=models.ManyToManyField(through='food_planner.StoredIngredient', to='food_planner.Ingredient'),
),
migrations.AddField(
model_name='pantry',