Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Mark the session as a read-only field

Roland Geideraa9f03d83420
diff --git a/wger/manager/api/serializers.py b/wger/manager/api/serializers.py
index 4873edeea..f1d597e50 100644
--- a/wger/manager/api/serializers.py
+++ b/wger/manager/api/serializers.py
@@ -425,6 +425,8 @@ class WorkoutLogSerializer(serializers.ModelSerializer):
Workout session serializer
"""
+ session = serializers.PrimaryKeyRelatedField(read_only=True)
+
class Meta:
model = WorkoutLog
fields = (