mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Refs #25300 -- Fixed reference to TextInput in a test.
This commit is contained in:
parent
f2f8972def
commit
dae81c6ec6
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user