Update admin.py

This commit is contained in:
zandercymatics 2024-10-02 10:30:08 -06:00
parent 997fc1bbed
commit db0d4a1eb2
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -1942,7 +1942,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
# == Handle action needed and rejected emails == #
# Edge case: this logic is handled by javascript, so contexts outside that must be handled
obj = self._handle_custom_emails()
obj = self._handle_custom_emails(obj)
# == Handle allowed emails == #
if obj.status in DomainRequest.get_statuses_that_send_emails() and not settings.IS_PRODUCTION: