mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
Respond to PR feedback
This commit is contained in:
parent
c86b6e9746
commit
d2683ef32c
2 changed files with 6 additions and 4 deletions
|
@ -58,7 +58,8 @@ class DomainAdmin(AuditedAdmin):
|
|||
readonly_fields = ["state"]
|
||||
|
||||
def response_change(self, request, obj):
|
||||
if "_place_client_hold" in request.POST:
|
||||
ACTION_BUTTON = "_place_client_hold"
|
||||
if ACTION_BUTTON in request.POST:
|
||||
try:
|
||||
obj.place_client_hold()
|
||||
except Exception as err:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue