2323 PresentationType ,
2424)
2525from participant_portal_api .models import ModificationAudit
26- from rest_framework import decorators , response , status , viewsets
26+ from rest_framework import decorators , request , response , status , viewsets
2727
2828ADMIN_METHODS = ["list" , "retrieve" , "create" , "update" , "partial_update" , "destroy" ]
2929
@@ -55,7 +55,9 @@ class PresentationAdminViewSet(JsonSchemaViewSet, viewsets.ModelViewSet):
5555
5656 @extend_schema (tags = [OpenAPITag .ADMIN_EVENT_PRESENTATION ])
5757 @decorators .action (detail = True , methods = ["get" ], url_path = r"preview/(?P<audit_id>[\w-]+)" )
58- def preview_modification_audit (self , audit_id : str , * args : tuple , ** kwargs : dict ) -> response .Response :
58+ def preview_modification_audit (
59+ self , request : request .Request , audit_id : str , * args : tuple , ** kwargs : dict
60+ ) -> response .Response :
5961 if not UUID_V4_REGEX .match (audit_id ):
6062 return response .Response (status = status .HTTP_404_NOT_FOUND )
6163
@@ -75,7 +77,9 @@ class PresentationSpeakerAdminViewSet(JsonSchemaViewSet, viewsets.ModelViewSet):
7577
7678 @extend_schema (tags = [OpenAPITag .ADMIN_EVENT_PRESENTATION ])
7779 @decorators .action (detail = True , methods = ["get" ], url_path = r"preview/(?P<audit_id>[\w-]+)" )
78- def preview_modification_audit (self , audit_id : str , * args : tuple , ** kwargs : dict ) -> response .Response :
80+ def preview_modification_audit (
81+ self , request : request .Request , audit_id : str , * args : tuple , ** kwargs : dict
82+ ) -> response .Response :
7983 if not UUID_V4_REGEX .match (audit_id ):
8084 return response .Response (status = status .HTTP_404_NOT_FOUND )
8185
0 commit comments