]> git.openstreetmap.org Git - osqa.git/commitdiff
OSQA-649, fixing the truncate username feature, now it works for basic users too.
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 11 Apr 2011 16:01:48 +0000 (16:01 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 11 Apr 2011 16:01:48 +0000 (16:01 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@966 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/user.py

index 665c4d46dd17356351e3e3c8e72992beb2e03777..523397ef3cd264d2bdf30a49c743bf960b3ab501 100644 (file)
@@ -162,7 +162,7 @@ class User(BaseModel, DjangoUser):
             if self.is_staff:
                 return u"%s \u2666" % username
 
-        return self.username
+        return username
 
     @property
     def last_activity(self):