summaryrefslogtreecommitdiff
path: root/app/lib
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-06-08 19:52:11 -0400
committerluxagraf <sng@luxagraf.net>2014-06-08 19:52:11 -0400
commite69f7da0dc610528b19fa868f273ca4089b0f7fb (patch)
tree3af0206e56b98e9a90130726d43b786a00c7c3dc /app/lib
parent1c2c28270911dbd2e5fbf106edcce6cc5f053101 (diff)
finished up notes app. still need to design and test, but it more or
less works.
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/templatetags/templatetags/month_number_to_name.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/lib/templatetags/templatetags/month_number_to_name.py b/app/lib/templatetags/templatetags/month_number_to_name.py
new file mode 100644
index 0000000..69bd7e6
--- /dev/null
+++ b/app/lib/templatetags/templatetags/month_number_to_name.py
@@ -0,0 +1,7 @@
+import calendar
+from django import template
+register = template.Library()
+
+@register.filter
+def month_number_to_name(month_number):
+ return calendar.month_name[int(month_number)]