Wiki: Fix names on listing showing up as unknown

This commit is contained in:
Andre D
2012-09-11 19:02:53 -05:00
committed by Neil Williams
parent 69876b1510
commit 619ff0e762

View File

@@ -89,7 +89,7 @@ class WikiRevision(tdb_cassandra.UuidThing, Printable):
cache_ignore = set(['subreddit'] + list(_str_props)).union(Printable.cache_ignore)
def author_name(self):
return get_author_name(getattr(self, 'author', None))
return get_author_name(self._get('author', None))
@classmethod
def add_props(cls, user, wrapped):