Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#14122 closed (fixed)

Documentation for yesno filter is lacking

Reported by: Mark Jones Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Looking at http://docs.djangoproject.com/en/dev/ref/templates/builtins/ gives pretty good examples for just about everything except yesno.

We need to add the following right before the table that is present:

For example:

{{ value|yesno:"yeah,no,maybe" }}

Attachments (1)

yesno_documentation.patch (612 bytes) - added by idahogray 6 years ago.
Patch to the yesno filter documentation

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by idahogray

Attachment: yesno_documentation.patch added

Patch to the yesno filter documentation

comment:1 Changed 6 years ago by Alex Gaynor

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 6 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

(In [13872]) Fixed #14122 -- Added example for builtin yesno template filter. Thanks, idahogray.

comment:3 Changed 6 years ago by Jannis Leidel

(In [13873]) [1.2.X] Fixed #14122 -- Added example for builtin yesno template filter. Thanks, idahogray.

Backport from trunk (r13872).

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