diff options
Diffstat (limited to 'tests/model_forms')
| -rw-r--r-- | tests/model_forms/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 53e70c6ae9..289d8604b3 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -2867,7 +2867,7 @@ class FormFieldCallbackTests(SimpleTestCase): fields = "__all__" Form = modelform_factory(Person, form=BaseForm) - self.assertIs(Form.base_fields['name'].widget, widget) + self.assertIsInstance(Form.base_fields['name'].widget, forms.Textarea) def test_factory_with_widget_argument(self): """ Regression for #15315: modelform_factory should accept widgets |
