mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #27369 -- Prevented widgets from being shared between form field instances.
This commit is contained in:
committed by
Tim Graham
parent
37809b891e
commit
09da1e79de
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user