Commit 6d5bc09c authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg

Merge branch 'cherry-pick-f91113e7' into 'release/1.8'

Merge branch 'fix/api-display-correct-members-event-registration' into 'master'

See merge request !514
parents a4cab915 1690117f
...@@ -78,7 +78,7 @@ class EventViewset(viewsets.ReadOnlyModelViewSet): ...@@ -78,7 +78,7 @@ class EventViewset(viewsets.ReadOnlyModelViewSet):
event=pk, date_cancelled__not=None) event=pk, date_cancelled__not=None)
elif status == 'registered': elif status == 'registered':
queryset = Registration.objects.filter( queryset = Registration.objects.filter(
event=pk, date_cancelled=None)[event.max_participants:] event=pk, date_cancelled=None)[:event.max_participants]
serializer = RegistrationSerializer(queryset, many=True, serializer = RegistrationSerializer(queryset, many=True,
context={'request': request}) context={'request': request})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment