mirror of https://github.com/django/django.git
Fixed #4522 -- Clarified the allowed filter arguments on the time and date filters. Thanks for the suggestion, admackin@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
53a06763c5
commit
0f10867519
|
@ -950,7 +950,7 @@ Removes all values of arg from the given string.
|
||||||
date
|
date
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
Formats a date according to the given format (same as the ``now`` tag).
|
Formats a date according to the given format (same as the `now`_ tag).
|
||||||
|
|
||||||
default
|
default
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
@ -1189,7 +1189,10 @@ Strips all [X]HTML tags.
|
||||||
time
|
time
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
Formats a time according to the given format (same as the ``now`` tag).
|
Formats a time according to the given format (same as the `now`_ tag).
|
||||||
|
The time filter will only accept parameters in the format string that relate
|
||||||
|
to the time of day, not the date (for obvious reasons). If you need to
|
||||||
|
format a date, use the `date`_ filter.
|
||||||
|
|
||||||
timesince
|
timesince
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
Loading…
Reference in New Issue