mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 22:16:33 +02:00
fix tests
This commit is contained in:
parent
86f520c3f6
commit
866204cb8d
4 changed files with 40 additions and 4 deletions
|
@ -1951,11 +1951,8 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
|||
|
||||
allowed = models.AllowedEmail.is_allowed_email(email)
|
||||
error_message = f"Could not send email. The email '{email}' does not exist within the whitelist."
|
||||
success_message = f"An email to '{email}' was sent!"
|
||||
if not allowed:
|
||||
messages.warning(request, error_message)
|
||||
else:
|
||||
messages.success(request, success_message)
|
||||
|
||||
def _handle_status_change(self, request, obj, original_obj):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue