Skip to content

Commit

Permalink
feat: upgrading simple api to drf compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Jul 30, 2024
1 parent 3758e42 commit b21a992
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lms/djangoapps/instructor/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ class RegisterAndEnrollStudents(APIView):
)
permission_classes = (IsAuthenticated, permissions.InstructorPermission)
permission_name = permissions.CAN_ENROLL

@method_decorator(ensure_csrf_cookie)
def post(self, request, course_id): # pylint: disable=too-many-statements
"""
Expand Down

0 comments on commit b21a992

Please sign in to comment.