Commit 101be591 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'fix/api-only-active-partners' into 'master'

Only show active partners in API

See merge request !591
parents 6bd97dee 79807ae5
......@@ -28,7 +28,7 @@ def _extract_date_range(request):
class PartnerViewset(viewsets.ReadOnlyModelViewSet):
serializer_class = PartnerSerializer
queryset = Partner.objects.all()
queryset = Partner.objects.filter(is_active=True)
@list_route(permission_classes=(IsAuthenticatedOrReadOnly,))
def calendarjs(self, request):
......
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