mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-03 16:32:15 +02:00
Refactor showInputOnErrorFields
This function requires a refactor after incorporating new logic
This commit is contained in:
parent
e5427aadf7
commit
cc278b1423
3 changed files with 39 additions and 30 deletions
|
@ -400,7 +400,7 @@ class UserProfilePermission(PermissionsLoginMixin):
|
|||
return False
|
||||
|
||||
# If we are given a pk in the request, do checks on it
|
||||
given_contact_pk = self.kwargs["pk"]
|
||||
given_contact_pk = self.kwargs.get("pk", None)
|
||||
|
||||
if given_contact_pk:
|
||||
# Grab the user in the DB to do a full object comparision, not just on ids
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue