File tree Expand file tree Collapse file tree
lms/djangoapps/instructor/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -751,7 +751,7 @@ def create_and_enroll_user(
751751
752752@method_decorator (cache_control (no_cache = True , no_store = True , must_revalidate = True ), name = 'dispatch' )
753753@method_decorator (transaction .non_atomic_requests , name = 'dispatch' )
754- class StudentsUpdateEnrollmentView (APIView ):
754+ class StudentsUpdateEnrollmentView (DeveloperErrorViewMixin , APIView ):
755755 """
756756 API view to enroll or unenroll students in a course.
757757 """
@@ -760,6 +760,7 @@ class StudentsUpdateEnrollmentView(APIView):
760760 permission_name = permissions .CAN_ENROLL
761761
762762 @method_decorator (ensure_csrf_cookie )
763+ @transaction .non_atomic_requests
763764 def post (self , request , course_id ):
764765 """
765766 Handle POST request to enroll or unenroll students.
You can’t perform that action at this time.
0 commit comments