From 84633ac5ed7cf1a1e434bcb48b306c3410267517 Mon Sep 17 00:00:00 2001 From: Ali Nawaz Date: Fri, 19 Apr 2024 14:14:30 +0500 Subject: [PATCH] does this fix the error --- course_discovery/apps/course_metadata/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course_discovery/apps/course_metadata/models.py b/course_discovery/apps/course_metadata/models.py index 91909f8f72f..b0c11736261 100644 --- a/course_discovery/apps/course_metadata/models.py +++ b/course_discovery/apps/course_metadata/models.py @@ -2681,7 +2681,7 @@ def update_or_create_restriction(self, restriction_type): 'restriction_type': restriction_type, } ) - self.refresh_from_db(fields={'restricted_run'}) + self.refresh_from_db() def update_or_create_official_version(self, notify_services=True): draft_version = CourseRun.everything.get(pk=self.pk)