From f7f86088c65a26d6fcf2a9b69f6255cf77594e61 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Wed, 9 Oct 2024 14:39:49 +0500 Subject: [PATCH] feat!: upgrading api to DRF. --- lms/djangoapps/instructor/views/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/instructor/views/api.py b/lms/djangoapps/instructor/views/api.py index 93f0adc36747..2ca7bc93d203 100644 --- a/lms/djangoapps/instructor/views/api.py +++ b/lms/djangoapps/instructor/views/api.py @@ -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.")