aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-18 22:52:49 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-23 22:25:06 +0100
commitfb7dd855de987d4e3dded1e55cad09a9fe6120cc (patch)
treeab48597b02549b29aad8d1a69fdf4782e365b35e /mediagoblin/templates
parentdb425022ddcb23ad69b8ba09e7280eb699ba4a4f (diff)
downloadmediagoblin-fb7dd855de987d4e3dded1e55cad09a9fe6120cc.tar.lz
mediagoblin-fb7dd855de987d4e3dded1e55cad09a9fe6120cc.tar.xz
mediagoblin-fb7dd855de987d4e3dded1e55cad09a9fe6120cc.zip
Turn MediaComment's author() into get_author property
1) MediaComment's author method conflicts with the author field. So rename it to get_author. 2) Turn it from a normal function into a python property. That means you call it by ".get_author" not by ".get_author()". This is exactly what sqlalchemy gives us free of charge.
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/media.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index b9e31667..c171dd5a 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -109,7 +109,7 @@
{% endif %}
{% if comments %}
{% for comment in comments %}
- {% set comment_author = comment.author() %}
+ {% set comment_author = comment.get_author %}
{% if pagination.active_id == comment._id %}
<div class="comment_wrapper comment_active" id="comment-{{ comment._id }}">
<a name="comment" id="comment"></a>