Opened 4 years ago

Closed 4 years ago

Last modified 4 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 Changed 4 years ago by anonymous

Component: UncategorizedDocumentation
Has patch: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 4 years ago by shabda@…

comment:3 Changed 4 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

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

Resolution: fixed
Status: newclosed

In 2564e310141ab0f23b5282ecaec8e820250c355a:

Fixed #19308 - Clarified stringformat filter example

Thanks Shabda Raaj.

comment:5 Changed 4 years ago by Tim Graham <timograham@…>

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