git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switched feed_patterns to return urlpatterns suitable for addition to urlpatterns...
[philo.git]
/
contrib
/
penfield
/
templatetags
/
penfield.py
diff --git
a/contrib/penfield/templatetags/penfield.py
b/contrib/penfield/templatetags/penfield.py
index
3f4c2f4
..
99e358c
100644
(file)
--- a/
contrib/penfield/templatetags/penfield.py
+++ b/
contrib/penfield/templatetags/penfield.py
@@
-12,12
+12,11
@@
def monthname(value):
register.filter('monthname', monthname)
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
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)