From 09a8cfcccfca0a26b7b75e723587db386658b2c7 Mon Sep 17 00:00:00 2001 From: Muhammad Anas <88967643+Anas12091101@users.noreply.github.com> Date: Fri, 22 Mar 2024 01:44:55 +0500 Subject: [PATCH] fix: Fixed the BulkEmailFlag __str__ function to avoid infinite recursion (#33901) --- lms/djangoapps/bulk_email/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/bulk_email/models.py b/lms/djangoapps/bulk_email/models.py index f6e232232a..0e26ea559c 100644 --- a/lms/djangoapps/bulk_email/models.py +++ b/lms/djangoapps/bulk_email/models.py @@ -523,8 +523,7 @@ class BulkEmailFlag(ConfigurationModel): app_label = "bulk_email" def __str__(self): - current_model = BulkEmailFlag.current() return "BulkEmailFlag: enabled {}, require_course_email_auth: {}".format( - current_model.is_enabled(), - current_model.require_course_email_auth + self.enabled, + self.require_course_email_auth )