]> git.openstreetmap.org Git - osqa.git/commitdiff
making the get_score_badge method decoratable, creating a private instance of it...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 20 Nov 2011 16:22:23 +0000 (16:22 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 20 Nov 2011 16:22:23 +0000 (16:22 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1203 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/templatetags/extra_tags.py

index b8d9f5cad3ce18c49189200856c6b2f5d764c7e7..1acb96993cb312500f6ffe16d977e4709d1c6c1d 100644 (file)
@@ -47,6 +47,9 @@ def gravatar(user, size):
 
 @register.simple_tag
 def get_score_badge(user):
+    return _get_score_badge(user)
+
+def _get_score_badge(user):
     if user.is_suspended():
         return _("(suspended)")