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
  • Loading branch information
root authored and Anas12091101 committed Mar 5, 2024
1 parent 42418fb commit 1e760a7
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 1e760a7

Please sign in to comment.