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 /django/forms | |
| parent | 37809b891eae2e73c7e80fbf5d8b9a7e86e82b54 (diff) | |
Fixed #27369 -- Prevented widgets from being shared between form field instances.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/fields.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py index 9f85f96dd0..d9552c28fe 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -94,6 +94,8 @@ class Field(object): widget = widget or self.widget if isinstance(widget, type): widget = widget() + else: + widget = copy.deepcopy(widget) # Trigger the localization machinery if needed. self.localize = localize |
