Skip to content

Commit

Permalink
fix: Fixed the BulkEmailFlag __str__ function to avoid infinite recur…
Browse files Browse the repository at this point in the history
…sion (#33901)
  • Loading branch information
Anas12091101 authored Mar 21, 2024
1 parent 907c32a commit 09a8cfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lms/djangoapps/bulk_email/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 09a8cfc

Please sign in to comment.