Commit b361952a authored by ernesttyh18's avatar ernesttyh18
Browse files

removed comments

parent 9e4130a6
......@@ -46,7 +46,7 @@ class CommentList(generics.ListCreateAPIView):
& Q(workout__owner__coach=self.request.user)
)
| Q(workout__owner=self.request.user)
).distinct() # message chain
).distinct()
return qs
......
......@@ -41,7 +41,7 @@ class Workout(models.Model):
visibility: The visibility level of the workout: Public, Coach, or Private
"""
name = models.CharField(max_length=100) # primitive obsession or whatever
name = models.CharField(max_length=100)
date = models.DateTimeField()
notes = models.TextField()
owner = models.ForeignKey(
......
......@@ -151,7 +151,6 @@ class WorkoutSerializer(serializers.HyperlinkedModelSerializer):
exercise_instance.sets = exercise_instance_data.get(
"sets", exercise_instance.sets
)
# this part can consolidate????????????????????
exercise_instance.save()
# If new exercise instances have been added to the workout, then create them
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment