From 27f154b1d8b8d74a3a4876167e74e28414a25425 Mon Sep 17 00:00:00 2001 From: jordan Date: Sun, 20 Nov 2011 16:22:23 +0000 Subject: [PATCH] making the get_score_badge method decoratable, creating a private instance of it called _get_score_badge which is returnable by get_score_badge git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1203 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/templatetags/extra_tags.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/forum/templatetags/extra_tags.py b/forum/templatetags/extra_tags.py index b8d9f5c..1acb969 100644 --- a/forum/templatetags/extra_tags.py +++ b/forum/templatetags/extra_tags.py @@ -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)") -- 2.39.5