mirror of
https://github.com/wger-project/wger.git
synced 2026-12-06 07:54:11 +01:00
Fix more API enpoints
This commit is contained in:
1 parent
a006169eb4
commit
744ea6c006
2 files changed
+2
-1
No files matched your search
@@ -244,6 +244,7 @@ class PermissionView(viewsets.ViewSet):
|
||||
'permission',
|
||||
OpenApiTypes.STR,
|
||||
OpenApiParameter.QUERY,
|
||||
required=True,
|
||||
description='The name of the django permission such as "exercises.change_muscle"',
|
||||
),
|
||||
],
|
||||
|
||||
@@ -105,7 +105,7 @@ class TrophyViewSet(viewsets.ReadOnlyModelViewSet):
|
||||
200: TrophyProgressSerializer(many=True),
|
||||
},
|
||||
)
|
||||
@action(detail=False, methods=['get'])
|
||||
@action(detail=False, methods=['get'], pagination_class=None)
|
||||
def progress(self, request):
|
||||
"""
|
||||
Return all trophies with progress information for the current user.
|
||||
|
||||
Reference in new issue
Block a user