This commit is contained in:
zandercymatics 2024-08-28 08:42:28 -06:00
parent 7c65cdd6a5
commit bc75ac4540
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
5 changed files with 14 additions and 19 deletions

View file

@ -1969,6 +1969,8 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
so we should display that information using this function.
"""
# TODO 2574: remove lines 1977-1978 (refactor as needed)
profile_flag = flag_is_active(request, "profile_feature")
if profile_flag and hasattr(obj, "creator"):
recipient = obj.creator
@ -1977,8 +1979,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
else:
recipient = None
# Displays a warning in admin when an email cannot be sent,
# Or a success message if it was.
# Displays a warning in admin when an email cannot be sent
if recipient and recipient.email:
email = recipient.email
allowed = models.AllowedEmail.is_allowed_email(email)