mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #27759 -- Prevented forms attrs.html template from rendering False attrs.
Regression in b52c73008a
.
This commit is contained in:
parent
88183117c2
commit
5fa390ee81
3 changed files with 6 additions and 2 deletions
|
@ -13,3 +13,7 @@ class WidgetTests(WidgetTest):
|
|||
|
||||
def test_no_trailing_newline_in_attrs(self):
|
||||
self.check_html(Input(), 'name', 'value', strict=True, html='<input type="None" name="name" value="value" />')
|
||||
|
||||
def test_attr_false_not_rendered(self):
|
||||
html = '<input type="None" name="name" value="value" />'
|
||||
self.check_html(Input(), 'name', 'value', html=html, attrs={'readonly': False})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue