Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Also expose the only logging and the goal flags on the nutritional plan info endpoint

Roland Geider777faf5c7b54
diff --git a/wger/nutrition/api/serializers.py b/wger/nutrition/api/serializers.py
index 2f8dffc30..b28bddb6a 100644
--- a/wger/nutrition/api/serializers.py
+++ b/wger/nutrition/api/serializers.py
@@ -355,5 +355,10 @@ class NutritionPlanInfoSerializer(serializers.ModelSerializer):
'id',
'creation_date',
'description',
+ 'only_logging',
+ 'goal_energy',
+ 'goal_protein',
+ 'goal_carbohydrates',
+ 'goal_fat',
'meals',
]