Opened 15 years ago

Closed 15 years ago

#10338 closed (invalid)

Typo "yeah" instead of "yes" in docs

Reported by: jumpfroggy Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords: typo documentation
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the documentation for the "yesno" filter, it lists the output as "yeah" and "no". This should be "yes" and "no".
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#yesno
Thanks!

Change History (1)

comment:1 by Karen Tracey, 15 years ago

Resolution: invalid
Status: newclosed

The filter output is whatever you want based on the argument value:

>>> t = Template('{{ x|yesno:"yes!,never!,perhaps"}}')
>>> t.render(Context({'x': True}))
u'yes!'
>>> t.render(Context({'x': False}))
u'never!'
>>> t.render(Context({'x': None}))
u'perhaps'
>>> 

I expect "yeah" was chosen for the doc in an attempt to emphasize that the output is not restricted to yes/no, but rather controlled by the argument. Since "yeah" is used consistently in the argument and output I don't see there is anything in error in the docs.

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