Self hosted FLOSS fitness/workout, nutrition and weight tracker
Expose the exercise's secondary muscles trough the REST API
Roland Geider8a81f741e8b7
diff --git a/wger/exercises/api/resources.py b/wger/exercises/api/resources.pyindex 47a47857f..7ea092433 100644--- a/wger/exercises/api/resources.py+++ b/wger/exercises/api/resources.py@@ -34,6 +34,7 @@ class ExerciseResource(ModelResource):category = fields.ToOneField('wger.exercises.api.resources.ExerciseCategoryResource','category')muscles = fields.ToManyField('wger.exercises.api.resources.MuscleResource', 'muscles')+ muscles_secondary = fields.ToManyField('wger.exercises.api.resources.MuscleResource', 'muscles_secondary')comments = fields.ToManyField('wger.exercises.api.resources.ExerciseCommentResource','exercisecomment_set')images = fields.ToManyField('wger.exercises.api.resources.ExerciseImageResource',