Commit d21130d1 authored by Linus Lewandowski's avatar Linus Lewandowski

Allow retrieval of client data when client id is known.

parent cb2393ec
Pipeline #11272840 passed with stages
in 6 minutes and 15 seconds
......@@ -254,3 +254,8 @@ class ClientViewSet(viewsets.ModelViewSet):
queryset = Client.objects.all()
filter_backends = (OnlySelfAndOwnedFilter,)
serializer_class = ClientSerializer
def filter_queryset(self, queryset):
if self.action == 'retrieve':
return queryset
return super().filter_queryset(queryset)
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