Skip to content

Commit

Permalink
feat!: upgrading api to DRF.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Oct 9, 2024
1 parent 487ae50 commit f7f8608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/instructor/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ def post(self, request, course_id):
if all_students and not has_access(request.user, 'instructor', course):
return HttpResponseForbidden("Requires instructor access.")

student_identifier = serializer_data.validated_data.get("unique_student_identifier")
student = serializer_data.validated_data.get("unique_student_identifier")

if not (problem_to_reset and (all_students or student)):
return HttpResponseBadRequest("Missing query parameters.")
Expand Down

0 comments on commit f7f8608

Please sign in to comment.