Unverified Commit beb68ab2 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Allow fallback to username

Closes #37
parent 5f24f571
...@@ -252,7 +252,7 @@ class Member(models.Model): ...@@ -252,7 +252,7 @@ class Member(models.Model):
return "'{}' {}".format(self.nickname, return "'{}' {}".format(self.nickname,
self.user.last_name) self.user.last_name)
else: else:
return self.get_full_name() return self.get_full_name() or self.user.username
display_name.short_description = _('Display name') display_name.short_description = _('Display name')
def get_full_name(self): def get_full_name(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment