Code

Opened 20 months ago

Closed 20 months ago

Last modified 20 months 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.

Attachments (0)

Change History (5)

comment:1 Changed 20 months ago by anonymous

  • Component changed from Uncategorized to Documentation
  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:3 Changed 20 months ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Cleanup/optimization

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

  • Resolution set to fixed
  • Status changed from new to closed

In 2564e310141ab0f23b5282ecaec8e820250c355a:

Fixed #19308 - Clarified stringformat filter example

Thanks Shabda Raaj.

comment:5 Changed 20 months ago by Tim Graham <timograham@…>

In c262252c27dd2ca5553e33de5e39515ddfb4ac1a:

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

Thanks Shabda Raaj.

Backport of 2564e31014 from master

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.