special label for anonymous users
git-svn-id: svn://localhost/lasso-conform/trunk@25 2a3a78c3-912c-0410-af21-e1fb2d1df599
This commit is contained in:
parent
e5c5cff135
commit
1dc3b14a82
|
@ -23,6 +23,8 @@ class User(StorableObject):
|
|||
self.roles = []
|
||||
|
||||
def get_display_name(self):
|
||||
if self.anonymous:
|
||||
return _('Anonymous User')
|
||||
if self.name:
|
||||
return self.name
|
||||
if self.email:
|
||||
|
|
Reference in New Issue