Refactor showInputOnErrorFields

This function requires a refactor after incorporating new logic
This commit is contained in:
zandercymatics 2024-05-20 13:37:03 -06:00
parent e5427aadf7
commit cc278b1423
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 39 additions and 30 deletions

View file

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