djangosnippets.org: Latest snippets posted by c2jhttps://djangosnippets.org/users/c2j/2009-09-12T22:45:55-05:00c2jOptimized humanize naturalday filter2009-09-12T22:45:55-05:00c2jhttps://djangosnippets.org/snippets/1724/<p>In Django humanize naturalday filter, you could not get the time part since a programming issue, If you apply it like:
{% load humanize %}
{{ response.date_submitted|naturalday:"Y/n/j H:i" }}</p>
<p>You can get 'today', 'yesterday', 'tomorrow' or empty, but you can not get such as '2009/9/10 11 ...</p>
Freely redistributable