Commit 98535a37 authored by Gijs Hendriksen's avatar Gijs Hendriksen
Browse files

Allow event detail viewing in the API

parent 079eaaab
......@@ -51,6 +51,9 @@ class EventViewset(viewsets.ReadOnlyModelViewSet):
def get_queryset(self):
queryset = Event.objects.filter(published=True)
if self.action == 'retrieve':
return queryset
start = _extract_date(self.request.query_params.get('start', None))
except (ValueError, InvalidTimeError) as e:
Supports Markdown
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