Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#19308 closed Cleanup/optimization (fixed)

stringformat filter's documentation is confusing

Reported by: shabda@… Owned by: shabda@…
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

{{ value|stringformat:"s" }}

If value is "Joel is a slug", the output will be "Joel is a slug".

While technically correct, input = output in the template which is confusing.

Change History (5)

comment:1 by anonymous, 12 years ago

Component: UncategorizedDocumentation
Has patch: set

comment:3 by Aymeric Augustin, 12 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

comment:4 by Tim Graham <timograham@…>, 12 years ago

Resolution: fixed
Status: newclosed

In 2564e310141ab0f23b5282ecaec8e820250c355a:

Fixed #19308 - Clarified stringformat filter example

Thanks Shabda Raaj.

comment:5 by Tim Graham <timograham@…>, 12 years ago

In c262252c27dd2ca5553e33de5e39515ddfb4ac1a:

[1.5.X] Fixed #19308 - Clarified stringformat filter example

Thanks Shabda Raaj.

Backport of 2564e31014 from master

Note: See TracTickets for help on using tickets.
Back to Top