From 68adc2d5a5b70013dbce4b9c04d82352ba4c5436 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 17 Dec 2020 19:49:35 +0100 Subject: [PATCH] admin: fix warning during swagger generation --- authentik/admin/api/version.py | 3 +++ authentik/admin/api/workers.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/authentik/admin/api/version.py b/authentik/admin/api/version.py index d12584f7c..441b41f6f 100644 --- a/authentik/admin/api/version.py +++ b/authentik/admin/api/version.py @@ -51,6 +51,9 @@ class VersionViewSet(ListModelMixin, GenericViewSet): permission_classes = [IsAdminUser] + def get_queryset(self): + return None + @swagger_auto_schema(responses={200: VersionSerializer(many=True)}) def list(self, request: Request) -> Response: """Get running and latest version.""" diff --git a/authentik/admin/api/workers.py b/authentik/admin/api/workers.py index 48bf248a7..998ffaa80 100644 --- a/authentik/admin/api/workers.py +++ b/authentik/admin/api/workers.py @@ -15,6 +15,9 @@ class WorkerViewSet(ListModelMixin, GenericViewSet): serializer_class = Serializer permission_classes = [IsAdminUser] + def get_queryset(self): + return None + def list(self, request: Request) -> Response: """Get currently connected worker count.""" return Response(