From 12e84da87026aee2ca2d4084292554c2aa24b42a Mon Sep 17 00:00:00 2001 From: Hasnain Saeed Date: Tue, 5 Oct 2021 12:02:17 +0500 Subject: [PATCH] Fix 500 issue on course outline page --- lms/djangoapps/courseware/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/models.py b/lms/djangoapps/courseware/models.py index f9df18bf7c8c..68699a9ec13f 100644 --- a/lms/djangoapps/courseware/models.py +++ b/lms/djangoapps/courseware/models.py @@ -167,7 +167,7 @@ def get_state_by_params(cls, course_id, module_state_keys, student_id=None): @classmethod def save_state(cls, student, course_id, module_state_key, defaults): - if not student.is_authenticated(): + if not student.is_authenticated: return else: cls.objects.update_or_create(