From 1c3f1c31c0294d4c72b973b1e1aa1855a1589a26 Mon Sep 17 00:00:00 2001 From: Muhammad Afaq Shuaib Date: Tue, 10 Sep 2024 17:27:34 +0500 Subject: [PATCH] chore: rename a variable --- course_discovery/apps/course_metadata/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/course_discovery/apps/course_metadata/models.py b/course_discovery/apps/course_metadata/models.py index 93f221c868..5e2f772472 100644 --- a/course_discovery/apps/course_metadata/models.py +++ b/course_discovery/apps/course_metadata/models.py @@ -3560,11 +3560,11 @@ def active_subjects(self): """ if self.primary_subject_override: if self.primary_subject_override not in self.subjects.all(): - product_subjects = [self.primary_subject_override] + list(self.subjects.all()) + subjects = [self.primary_subject_override] + list(self.subjects.all()) else: - product_subjects = list(self.subjects.all()) + subjects = list(self.subjects.all()) - return product_subjects + return subjects @property def topics(self):