aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/listings
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-24 00:08:28 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-27 20:41:31 +0100
commit05751758469a03835975dd2998aa727fa29c9a16 (patch)
treef101ef46aa0d6441232335f678415ad1555b7f45 /mediagoblin/listings
parent0eb649ff7ac3f1eb71eb1d2cb66019a860b2c5c7 (diff)
downloadmediagoblin-05751758469a03835975dd2998aa727fa29c9a16.tar.lz
mediagoblin-05751758469a03835975dd2998aa727fa29c9a16.tar.xz
mediagoblin-05751758469a03835975dd2998aa727fa29c9a16.zip
Turn media.get_uploader into a property
sqlalchemy gives autoloading (hopefully caching) link to other objects as properties. So turn get_uploader on the current mongo based stuff into a property to ease transition.
Diffstat (limited to 'mediagoblin/listings')
-rw-r--r--mediagoblin/listings/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/listings/views.py b/mediagoblin/listings/views.py
index 6b83ffcf..3ecf06f4 100644
--- a/mediagoblin/listings/views.py
+++ b/mediagoblin/listings/views.py
@@ -86,7 +86,7 @@ def tag_atom_feed(request):
feed.add(entry.get('title'),
entry.get('description_html'),
content_type='html',
- author=entry.get_uploader().username,
+ author=entry.get_uploader.username,
updated=entry.get('created'),
url=entry.url_for_self(request.urlgen))