Respond to PR feedback

This commit is contained in:
Seamus Johnston 2023-06-16 13:56:19 -05:00
parent c86b6e9746
commit d2683ef32c
No known key found for this signature in database
GPG key ID: 2F21225985069105
2 changed files with 6 additions and 4 deletions

View file

@ -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: