mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 01:27:03 +02:00
add one last else and a logger warning for unknown status transition in django admin
This commit is contained in:
parent
1cb380c030
commit
05c755be96
1 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,8 @@ class DomainApplicationAdmin(AuditedAdmin):
|
||||||
original_obj.approve(updated_domain_application=obj)
|
original_obj.approve(updated_domain_application=obj)
|
||||||
elif obj.status == models.DomainApplication.WITHDRAWN:
|
elif obj.status == models.DomainApplication.WITHDRAWN:
|
||||||
original_obj.withdraw()
|
original_obj.withdraw()
|
||||||
|
else:
|
||||||
|
logger.warning("Unknown status selected in django admin")
|
||||||
|
|
||||||
super().save_model(request, obj, form, change)
|
super().save_model(request, obj, form, change)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue