Skip to content

Commit d2fb230

Browse files
committed
fix: inherit from DeveloperErrorViewMixin
1 parent f0e8afc commit d2fb230

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lms/djangoapps/instructor/views

lms/djangoapps/instructor/views/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)