admin: fix warning during swagger generation
This commit is contained in:
parent
349a3a67d5
commit
68adc2d5a5
|
@ -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."""
|
||||
|
|
|
@ -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(
|
||||
|
|
Reference in New Issue