Skip to content

Commit 6132245

Browse files
uy-rrodriguezatodorov
authored andcommitted
Update func_noerror_forms_py33 with test for #284
Include `Form` class to test that assigning a specific widget doesn't throw an error, as mentioned in #284.
1 parent ae53753 commit 6132245

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pylint_django/tests/input/func_noerror_forms_py33.py

+9
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@ class Meta:
3131
class TestModelFormSubclass(forms.ModelForm):
3232
class Meta:
3333
pass
34+
35+
36+
class TestFormWidgetAssignment(forms.Form):
37+
38+
multi_field = forms.MultipleChoiceField(choices=[('1', 'First'), ('2', 'Second')])
39+
40+
class Meta:
41+
widgets = {}
42+
widgets['multi_field'] = forms.CheckboxSelectMultiple

0 commit comments

Comments
 (0)