summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 9bcfd4930..a3e0302aa 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3998,7 +3998,10 @@ def post_save_userprofile(sender, **kwargs):
if not kwargs.get('instance'):
return
instance = kwargs.get('instance')
- instance.person.ishtaruser.show_field_number(update=True)
+ try:
+ instance.person.ishtaruser.show_field_number(update=True)
+ except IshtarUser.DoesNotExist:
+ return
post_save.connect(post_save_userprofile, sender=UserProfile)