Refs #25300 -- Fixed reference to TextInput in a test.

This commit is contained in:
Moritz Sichert 2015-09-09 15:14:07 +02:00 committed by Tim Graham
parent f2f8972def
commit dae81c6ec6
1 changed files with 2 additions and 2 deletions

View File

@ -2301,8 +2301,8 @@ class FormsTestCase(SimpleTestCase):
unless it is `None`.
"""
class SomeForm(Form):
field = CharField(widget=forms.TextInput(attrs={'id': 'myCustomID'}))
field_none = CharField(widget=forms.TextInput(attrs={'id': None}))
field = CharField(widget=TextInput(attrs={'id': 'myCustomID'}))
field_none = CharField(widget=TextInput(attrs={'id': None}))
form = SomeForm()
self.assertEqual(form['field'].id_for_label, 'myCustomID')