mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
[1.5.X] Fixed #19308 - Clarified stringformat filter example
Thanks Shabda Raaj.
Backport of 2564e31014
from master
This commit is contained in:
parent
31da2a5e56
commit
c262252c27
1 changed files with 2 additions and 2 deletions
|
@ -1911,9 +1911,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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue