diff options
| author | Brian Rosner <brosner@gmail.com> | 2008-04-29 01:09:53 +0000 |
|---|---|---|
| committer | Brian Rosner <brosner@gmail.com> | 2008-04-29 01:09:53 +0000 |
| commit | 0ce76a92f37ffd718fed98296c0cd2cecfaa6993 (patch) | |
| tree | 8a9d20e19fe371d52948696e7e81dd424cf60891 /django | |
| parent | 886005078d66bd779ad3d6434d5699fbc17cfed1 (diff) | |
newforms-admin: Fixed #7114 -- MultiWidget now calls decompress on initial data. Thanks Honza Kral.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/newforms/widgets.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/newforms/widgets.py b/django/newforms/widgets.py index 8965a8c108..df5c20d97d 100644 --- a/django/newforms/widgets.py +++ b/django/newforms/widgets.py @@ -571,6 +571,8 @@ class MultiWidget(Widget): def _has_changed(self, initial, data): if initial is None: initial = [u'' for x in range(0, len(data))] + else: + initial = self.decompress(initial) for widget, initial, data in zip(self.widgets, initial, data): if not widget._has_changed(initial, data): return False |
