diff options
| author | Michal Petrucha <michal.petrucha@koniiiik.org> | 2016-11-06 07:16:56 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-06 07:16:56 +0100 |
| commit | 09da1e79de5a03a63610822bd4e5fc2adcbeb38a (patch) | |
| tree | 260824793c64587d9bf7f923bd6016d65dca2236 /tests/model_forms | |
| parent | 37809b891eae2e73c7e80fbf5d8b9a7e86e82b54 (diff) | |
Fixed #27369 -- Prevented widgets from being shared between form field instances.
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 |
