From b4cda26c91c3de0fc459efd35b75c017bc915fe6 Mon Sep 17 00:00:00 2001 From: Irtaza Akram <51848298+irtazaakram@users.noreply.github.com> Date: Thu, 5 Oct 2023 09:44:30 +0500 Subject: [PATCH] fix: swagger_auto_schema applied twice error (#552) --- registrar/apps/api/v3/views.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/registrar/apps/api/v3/views.py b/registrar/apps/api/v3/views.py index 4f98c5f0..75bfa3a1 100644 --- a/registrar/apps/api/v3/views.py +++ b/registrar/apps/api/v3/views.py @@ -3,7 +3,6 @@ """ import logging -from edx_api_doc_tools import query_parameter, schema_for from edx_rest_framework_extensions.auth.jwt.authentication import ( JwtAuthentication, ) @@ -20,24 +19,7 @@ logger = logging.getLogger(__name__) -SCHEMA_COMMON_RESPONSES = { - 401: 'User is not authenticated.', - 405: 'HTTP method not supported on this path.' -} - - -@schema_for( - 'get', - parameters=[ - query_parameter('org_key', str, 'Organization filter'), - query_parameter('user_has_perm', str, 'Permission filter'), - ], - responses={ - 403: 'User lacks access to organization.', - 404: 'Organization does not exist.', - **SCHEMA_COMMON_RESPONSES, - }, -) + class ProgramListPaginationView(ProgramListView, TrackViewMixin, ListAPIView): """ A view for listing program objects.