From 88a1136dfd0f3145d6cbf23c778697860960c110 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 3 Feb 2026 13:22:43 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(backend)=20refactor=20Applic?= =?UTF-8?q?ationViewSet=20to=20use=20a=20basic=20ViewSet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This endpoint only exposes a custom action for token generation and does not rely on serializers or querysets. Using ViewSet is more appropriate here, as it provides routing without enforcing standard CRUD patterns or requiring a serializer_class. This removes unnecessary constraints and avoids warnings related to missing serializer configuration, while better reflecting the actual responsibility of this view. I noticed this bug from Sentry issue 241308 --- src/backend/core/external_api/viewsets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/core/external_api/viewsets.py b/src/backend/core/external_api/viewsets.py index 11b6fc6b..cf1018fd 100644 --- a/src/backend/core/external_api/viewsets.py +++ b/src/backend/core/external_api/viewsets.py @@ -28,7 +28,7 @@ from . import authentication, permissions, serializers logger = getLogger(__name__) -class ApplicationViewSet(viewsets.GenericViewSet): +class ApplicationViewSet(viewsets.ViewSet): """API endpoints for application authentication and token generation.""" @decorators.action(