X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/9f1d9b668a5de15e370dc0cd85997f458bbb2c98..e28770970915d09e68ad5fc2d83d6ca007faf2ae:/forum/models/user.py?ds=sidebyside diff --git a/forum/models/user.py b/forum/models/user.py index 695501f..cf47c66 100644 --- a/forum/models/user.py +++ b/forum/models/user.py @@ -165,8 +165,8 @@ class User(BaseModel, DjangoUser): #todo: temporary thing, for now lets just assume that the site owner will always be the first user of the application return self.id == 1 - @property - def decorated_name(self): + + def _decorated_name(self): username = smart_unicode(self.username) if len(username) > TRUNCATE_USERNAMES_LONGER_THAN and TRUNCATE_LONG_USERNAMES: @@ -181,6 +181,10 @@ class User(BaseModel, DjangoUser): return username + @property + def decorated_name(self): + return self._decorated_name() + @property def last_activity(self): try: