Skip to content

Commit

Permalink
Remove broken code that was added on accident
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikskog committed Aug 31, 2024
1 parent 0c0c93a commit 56b0f34
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions apps/events/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,6 @@ def public_attendees(self, request, pk=None):

return Response(data=serializer.data, status=status.HTTP_200_OK)

@action(
detail=False,
methods=["GET"],
permission_classes=(permissions.IsAuthenticated,),
serializer_class=AttendanceEventSerializer,
url_path="by-registration",
)
def by_registration(self, request):
attendance_events = AttendanceEvent.by_registration.all()
serializer = self.get_serializer(attendance_events, many=True)

return Response(data=serializer.data, status=status.HTTP_200_OK)

@action(
detail=True,
methods=["GET"],
Expand Down

0 comments on commit 56b0f34

Please sign in to comment.