mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 11:16:07 +02:00
Add some none returns - needs cleaning
This commit is contained in:
parent
2ef573ddfa
commit
6b5d6009d1
1 changed files with 3 additions and 1 deletions
|
@ -1110,6 +1110,7 @@ class DomainApplicationAdmin(ListHeaderAdmin):
|
|||
request,
|
||||
"This action is not permitted. The domain is already active.",
|
||||
)
|
||||
return None
|
||||
elif (
|
||||
obj
|
||||
and obj.status == models.DomainApplication.ApplicationStatus.REJECTED
|
||||
|
@ -1126,7 +1127,7 @@ class DomainApplicationAdmin(ListHeaderAdmin):
|
|||
request,
|
||||
"A rejection reason is required.",
|
||||
)
|
||||
|
||||
return None
|
||||
else:
|
||||
if obj.status != original_obj.status:
|
||||
status_method_mapping = {
|
||||
|
@ -1162,6 +1163,7 @@ class DomainApplicationAdmin(ListHeaderAdmin):
|
|||
request,
|
||||
err.message,
|
||||
)
|
||||
return None
|
||||
|
||||
super().save_model(request, obj, form, change)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue