From 619ff0e762d9e977cc62f53db2230a409072da7e Mon Sep 17 00:00:00 2001 From: Andre D Date: Tue, 11 Sep 2012 19:02:53 -0500 Subject: [PATCH] Wiki: Fix names on listing showing up as unknown --- r2/r2/models/wiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/models/wiki.py b/r2/r2/models/wiki.py index ad058fa69..42846b93d 100644 --- a/r2/r2/models/wiki.py +++ b/r2/r2/models/wiki.py @@ -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):