X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/4e52d8847f8cd9909de7ad19bb4b88629f631a0f..62ed3da3a2ef892a787a24ece991b0bf9b39e112:/forum/models/user.py 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: