Skip to content

Commit

Permalink
Merge pull request #268 from ZdruzenieSTROM/active_events
Browse files Browse the repository at this point in the history
Change POST to GET on event/active
  • Loading branch information
kovacspe authored Nov 12, 2023
2 parents d7dd2be + 45c8083 commit 300f2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions competition/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ def participants(self, request, pk=None):
# Profile serializer
return event.registered_profiles()

@action(methods=['post'], detail=False, permission_classes=[IsAuthenticated])
def active(self):
@action(methods=['get'], detail=False, permission_classes=[IsAuthenticated])
def active(self, request):
"""Get all active events"""
active_events = self.get_queryset().active()
serializer = self.serializer_class(active_events, many=True)
Expand Down

0 comments on commit 300f2d1

Please sign in to comment.