Fixing a double declaration of the monthname filter, and renaming ap_monthname to...
authorJoseph Spiros <joseph.spiros@ithinksw.com>
Thu, 8 Jul 2010 00:34:03 +0000 (20:34 -0400)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Thu, 8 Jul 2010 00:34:03 +0000 (20:34 -0400)
contrib/penfield/templatetags/penfield.py

index 3f4c2f4..99e358c 100644 (file)
@@ -12,12 +12,11 @@ def monthname(value):
 
 register.filter('monthname', monthname)
 
-def ap_monthname(value):
+def apmonthname(value):
        monthnum = int(value)
        if 1 <= monthnum <= 12:
                return MONTHS_AP[monthnum]
        else:
                return value
 
-register.filter('monthname', monthname)
-register.filter('ap_monthname', ap_monthname)
+register.filter('apmonthname', apmonthname)