Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix migration file

Roland Geider9e5660950e44
diff --git a/wger/nutrition/migrations/0002_auto_20170101_1538.py b/wger/nutrition/migrations/0002_auto_20170101_1538.py
index 875c4a44e..76b1c1609 100644
--- a/wger/nutrition/migrations/0002_auto_20170101_1538.py
+++ b/wger/nutrition/migrations/0002_auto_20170101_1538.py
@@ -21,7 +21,7 @@ def update_status(apps, schema_editor):
Updates the status of the ingredients
'''
Ingredient = apps.get_model("nutrition", "Ingredient")
- Ingredient.objects.filter(status__in=('5', '4')).update(status=1)
+ Ingredient.objects.filter(status__in=('5', '4')).update(status=2)
class Migration(migrations.Migration):