Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Output the resource a schedulestep belongs to

Roland Geider1a5df0973f68
diff --git a/wger/manager/api/resources.py b/wger/manager/api/resources.py
index ea985ecd3..f8584b93d 100644
--- a/wger/manager/api/resources.py
+++ b/wger/manager/api/resources.py
@@ -49,7 +49,6 @@ class UserProfileResource(ModelResource):
return object_list.filter(user=bundle.request.user)
class Meta:
-
excludes = ('is_temporary', )
queryset = UserProfile.objects.all()
authentication = ApiKeyAuthentication()
@@ -84,6 +83,7 @@ class ScheduleStepResource(ModelResource):
'''
workout = fields.ToOneField(WorkoutResource, 'workout')
+ schedule = fields.ToOneField('wger.manager.api.resources.ScheduleResource', 'schedule')
def authorized_read_list(self, object_list, bundle):
'''