From be520c33d81631c9d649b170863c221e3169c742 Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Wed, 7 Jul 2010 20:34:03 -0400 Subject: [PATCH] Fixing a double declaration of the monthname filter, and renaming ap_monthname to apmonthname (matches apnumber from django.contrib.humanize). --- contrib/penfield/templatetags/penfield.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.20.1