Skip to content
Snippets Groups Projects
Commit ef3e1600 authored by Jean-Baptiste's avatar Jean-Baptiste
Browse files

bugfix: no jabberId if no chatProfile

parent e6969c35
No related branches found
Tags v0.0.15
No related merge requests found
Pipeline #1253 passed
...@@ -15,7 +15,10 @@ class Profile(models.Model): ...@@ -15,7 +15,10 @@ class Profile(models.Model):
website = models.URLField(blank=True) website = models.URLField(blank=True)
def jabberID(self): def jabberID(self):
return self.user.chatProfile.jabberID try:
return self.user.chatProfile.jabberID
except:
return None
class Meta: class Meta:
auto_author = 'user' auto_author = 'user'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment