Ticket #6449: django-date-filter.patch
File django-date-filter.patch, 526 bytes (added by , 17 years ago) |
---|
-
django/template/defaultfilters.py
619 619 from django.utils.dateformat import format 620 620 if not value: 621 621 return u'' 622 if arg i s None:622 if arg in [None, 'x']: 623 623 arg = settings.DATE_FORMAT 624 elif arg == 'X': 625 arg = settings.DATETIME_FORMAT 624 626 return format(value, arg) 625 627 date.is_safe = False 626 628