mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 01:11:55 +02:00
Fix contact.py
This commit is contained in:
parent
0d57a58f81
commit
59e7225dfd
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class Contact(TimeStampedModel):
|
|||
super().save(*args, **kwargs)
|
||||
|
||||
# Update the related User object's first_name and last_name
|
||||
if self.user:
|
||||
if self.user and not self.user.first_name or not self.user.last_name:
|
||||
self.user.first_name = self.first_name
|
||||
self.user.last_name = self.last_name
|
||||
self.user.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue