diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-08 17:02:56 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:42:35 +0200 |
commit | 373cc7ea161d77a106b75d11f5c40319be21f4d0 (patch) | |
tree | 75958b276b6976439feed600807ec32b01a88a07 /ishtar_common/models.py | |
parent | 11390d9e5517d338788aa23fe048d39df962a42c (diff) | |
download | Ishtar-373cc7ea161d77a106b75d11f5c40319be21f4d0.tar.bz2 Ishtar-373cc7ea161d77a106b75d11f5c40319be21f4d0.zip |
Fix person merge when the target have an ishtar profile (refs #4477)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 5 |
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) |