aboutsummaryrefslogtreecommitdiff
path: root/templatetags
diff options
context:
space:
mode:
authorAlban Gruin2018-04-25 09:42:24 +0200
committerAlban Gruin2018-04-25 09:42:24 +0200
commit4c82869e3a590c982c43958e3e4b0f9fad440678 (patch)
treef9fc3eed1db9a0c033dc991d5d28bc10ea692079 /templatetags
parentfb3a3bc214b071083325a75a9546331150eaa8a5 (diff)
templates: remplacement de dt_prettyprint par date
Diffstat (limited to 'templatetags')
-rw-r--r--templatetags/dt_week.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/templatetags/dt_week.py b/templatetags/dt_week.py
index de0db08..2d27481 100644
--- a/templatetags/dt_week.py
+++ b/templatetags/dt_week.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2017 Alban Gruin
+# Copyright (C) 2017-2018 Alban Gruin
#
# celcatsanitizer is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
@@ -21,8 +21,3 @@ register = template.Library()
@register.filter
def dt_week(dt):
return dt.isocalendar()[1]
-
-
-@register.filter
-def dt_prettyprint(dt):
- return "{0}/{1:02d}/{2:02d}".format(dt.year, dt.month, dt.day)