From 1541862f9bb58dda1359c3736532d0c67bac4c36 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Sat, 5 Oct 2024 15:41:17 +0500 Subject: [PATCH] feat!: upgrading api to DRF. --- lms/djangoapps/instructor/views/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lms/djangoapps/instructor/views/api.py b/lms/djangoapps/instructor/views/api.py index 32c75fb5854..e31f727cfd1 100644 --- a/lms/djangoapps/instructor/views/api.py +++ b/lms/djangoapps/instructor/views/api.py @@ -3550,6 +3550,7 @@ class GenerateBulkCertificateExceptions(APIView): permission_classes = (IsAuthenticated, permissions.InstructorPermission) permission_name = permissions.GENERATE_BULK_CERTIFICATE_EXCEPTIONS + @method_decorator(ensure_csrf_cookie) def post(self, request, course_id): """ Arguments: