Updates tests

This commit is contained in:
Mouse Reeve
2020-12-20 12:50:35 -08:00
parent 3597ca460c
commit 79973687d5
3 changed files with 5 additions and 6 deletions

View File

@ -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