Commit 462720f9 authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Merge branch '37-str-member-defaulten-naar-username-if-all-else-fails' into 'master'

Allow fallback to username

Closes #37

See merge request !40
parents 966081b0 beb68ab2
......@@ -264,7 +264,7 @@ class Member(models.Model):
return "'{}' {}".format(self.nickname,
self.user.last_name)
else:
return self.get_full_name()
return self.get_full_name() or self.user.username
display_name.short_description = _('Display name')
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