diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-07-21 22:26:03 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-07-22 09:07:04 +0200 |
| commit | 816bf0c6a7a13efb7ae17c9773f984f2dd16fc72 (patch) | |
| tree | 1a1c4ea185c609d4a5ca2e61afdb36e5a567e5b2 /django/forms | |
| parent | 48516d3b853e99600c60fed26b5c12ed3fc4a4d8 (diff) | |
[1.6.x] Fixed #20781 -- Fixed _has_changed regression with MultiValueField
Thanks Tim Graham for the report.
Backport of 02b0106d from master.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py index 7711cd65ad..a794c02e9f 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -1025,7 +1025,7 @@ class MultiValueField(Field): if not isinstance(initial, list): initial = self.widget.decompress(initial) for field, initial, data in zip(self.fields, initial, data): - if field._has_changed(initial, data): + if field._has_changed(field.to_python(initial), data): return True return False |
