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.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user