Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix the queryset, this is the endpoint for Sets not Settings

Roland Geider0933fc81ebe4
diff --git a/wger/manager/api/views.py b/wger/manager/api/views.py
index 98206fef1..6216e3e3e 100644
--- a/wger/manager/api/views.py
+++ b/wger/manager/api/views.py
@@ -185,7 +185,7 @@ class SetViewSet(WgerOwnerObjectModelViewSet):
'''
Only allow access to appropriate objects
'''
- return Setting.objects.filter(exerciseday__training__user=self.request.user)
+ return Set.objects.filter(exerciseday__training__user=self.request.user)
def get_owner_objects(self):
'''