Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix serializer and field mismatch

Roland Geider5c5e7de2161d
diff --git a/wger/nutrition/api/serializers.py b/wger/nutrition/api/serializers.py
index eb7575699..07cc21dee 100644
--- a/wger/nutrition/api/serializers.py
+++ b/wger/nutrition/api/serializers.py
@@ -122,6 +122,7 @@ class MealItemSerializer(serializers.ModelSerializer):
class Meta:
model = MealItem
fields = ['id',
+ 'meal',
'ingredient',
'weight_unit',
'order',