Updates tests
This commit is contained in:
parent
3597ca460c
commit
79973687d5
3 changed files with 5 additions and 6 deletions
|
@ -100,7 +100,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
|||
@property
|
||||
def display_name(self):
|
||||
''' show the cleanest version of the user's name possible '''
|
||||
if self.name != '':
|
||||
if self.name and self.name != '':
|
||||
return self.name
|
||||
return self.localname or self.username
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue