Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Expose the ingredient weight unit over the API

Roland Geider59881a07c910
diff --git a/wger/nutrition/api/serializers.py b/wger/nutrition/api/serializers.py
index fc4c22c6b..037a38c60 100644
--- a/wger/nutrition/api/serializers.py
+++ b/wger/nutrition/api/serializers.py
@@ -68,7 +68,11 @@ class WeightUnitSerializer(serializers.ModelSerializer):
class Meta:
model = WeightUnit
- fields = ['language', 'name']
+ fields = [
+ 'id',
+ 'language',
+ 'name',
+ ]
class IngredientSerializer(serializers.ModelSerializer):