Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Allow filtering the exercise REST endpoint by license information

Roland Geiderf58b77b78a74
diff --git a/wger/exercises/api/resources.py b/wger/exercises/api/resources.py
index e9ca56956..3cb2e5fee 100644
--- a/wger/exercises/api/resources.py
+++ b/wger/exercises/api/resources.py
@@ -58,7 +58,9 @@ class ExerciseResource(ModelResource):
"language": ALL_WITH_RELATIONS,
"muscles": ALL_WITH_RELATIONS,
"status": ALL,
- "name": ALL}
+ "name": ALL,
+ "license": ALL,
+ "license_author": ALL}
class EquipmentResource(ModelResource):