1
0
mirror of https://github.com/django/django.git synced 2025-01-08 17:37:20 +00:00

Fixed #19308 - Clarified stringformat filter example

Thanks Shabda Raaj.
This commit is contained in:
Tim Graham 2012-11-17 19:29:31 -05:00
parent 04775b4598
commit 2564e31014

View File

@ -1935,9 +1935,9 @@ for documentation of Python string formatting
For example::
{{ value|stringformat:"s" }}
{{ value|stringformat:"E" }}
If ``value`` is ``"Joel is a slug"``, the output will be ``"Joel is a slug"``.
If ``value`` is ``10``, the output will be ``1.000000E+01``.
.. templatefilter:: striptags