mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-12-09 13:27:43 +01:00
Update views.py
This commit is contained in:
@@ -30,7 +30,7 @@ class ActivityViewSet(ReadProtectedModelViewSet):
|
||||
The djangorestframework plugin will get all `Activity` objects, serialize it to JSON with the given serializer,
|
||||
then render it on /api/activity/activity/
|
||||
"""
|
||||
queryset = Activity.objects.order_by('id')
|
||||
queryset = Activity.objects.order_by('-date_start')
|
||||
serializer_class = ActivitySerializer
|
||||
filter_backends = [DjangoFilterBackend, RegexSafeSearchFilter]
|
||||
filterset_fields = ['name', 'description', 'activity_type', 'location', 'creater', 'organizer', 'attendees_club',
|
||||
|
||||
Reference in New Issue
Block a user