From 0ce76a92f37ffd718fed98296c0cd2cecfaa6993 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Tue, 29 Apr 2008 01:09:53 +0000 Subject: 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 --- django/newforms/widgets.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'django/newforms/widgets.py') 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 -- cgit v1.3