#18554: Template rendering based on value of hidden BooleanFields
-------------------------------+--------------------------------------
Reporter: seddonym | Owner: nobody
Type: Uncategorized | Status: closed
Component: Forms | Version: 1.3
Severity: Normal | Resolution: worksforme
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by aaugustin):
* status: new => closed
* needs_docs: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
I can't reproduce this in current master.
The following three alternatives all return the expected result:
{{{
{{ form.bool1.value }}
{{ form.bool1.value|yesno }}
{% if form.bool1.value %}Yes{% else %}No{% endif %}
}}}
The problem may have been fixed after Django 1.3.
--
Ticket URL: <https://code.djangoproject.com/ticket/18554#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.