Initial architecture for rejection reason

This commit is contained in:
zandercymatics 2024-09-27 11:34:45 -06:00
parent 48b9206ffc
commit 9b23262d61
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
15 changed files with 306 additions and 82 deletions

View file

@ -1994,7 +1994,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
# Set the rejection_reason_email to the default if nothing exists.
# Since this check occurs after save, if the user enters a value then we won't update.
default_email = get_rejection_reason_default_email(obj, obj.action_needed_reason)
default_email = get_rejection_reason_default_email(obj, obj.rejection_reason)
if obj.rejection_reason_email:
emails = get_all_rejection_reason_emails(obj)
is_custom_email = obj.rejection_reason_email not in emails.values()