﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27759	Template widget rendering: attrs with value False now render	Jon Dufresne	nobody	"In Django 1.10, widget attrs with a value of `False` do not render. See the code: https://github.com/django/django/blob/stable/1.10.x/django/forms/utils.py#L40-L42

In Django 1.11, these attributes now render as `=""False""`. This is because the [https://github.com/django/django/blob/12cefee5d84b3569ccbde03167c7853e8dac638f/django/forms/templates/django/forms/widgets/attrs.html attrs.html template] only looks for the boolean value `True`.

This forces code of the form:

{{{
attrs['readonly'] = some_bool_condition()
}}}

To:

{{{
if some_bool_condition():
    attrs['readonly'] = True
}}}
"	Bug	closed	Forms	1.11	Normal	fixed			Ready for checkin	1	0	0	0	0	0
