From 1e760a76098f518b773e427cec0e0e43008f15e3 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 5 Dec 2023 14:17:17 +0000 Subject: [PATCH] fix: Fixed the BulkEmailFlag __str__ function to avoid infinite recursion --- 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 f6e232232a29..0e26ea559c20 100644 --- a/lms/djangoapps/bulk_email/models.py +++ b/lms/djangoapps/bulk_email/models.py @@ -523,8 +523,7 @@ class Meta: 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 )