From: Joseph Spiros Date: Thu, 8 Jul 2010 00:34:03 +0000 (-0400) Subject: Fixing a double declaration of the monthname filter, and renaming ap_monthname to... X-Git-Tag: philo-0.9~53^2 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/be520c33d81631c9d649b170863c221e3169c742 Fixing a double declaration of the monthname filter, and renaming ap_monthname to apmonthname (matches apnumber from django.contrib.humanize). --- diff --git a/contrib/penfield/templatetags/penfield.py b/contrib/penfield/templatetags/penfield.py index 3f4c2f4..99e358c 100644 --- a/contrib/penfield/templatetags/penfield.py +++ b/contrib/penfield/templatetags/penfield.py @@ -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)