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 --- tests/regressiontests/forms/widgets.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/regressiontests/forms/widgets.py') diff --git a/tests/regressiontests/forms/widgets.py b/tests/regressiontests/forms/widgets.py index 0e69602103..d701879311 100644 --- a/tests/regressiontests/forms/widgets.py +++ b/tests/regressiontests/forms/widgets.py @@ -895,6 +895,12 @@ u'
< >>> w.render('name', ['john', 'lennon']) u'
' +>>> w = MyMultiWidget(widgets=(TextInput(), TextInput())) +>>> w._has_changed(None, ['john', 'lennon']) +True +>>> w._has_changed('john__lennon', ['john', 'lennon']) +False + # SplitDateTimeWidget ######################################################### >>> w = SplitDateTimeWidget() -- cgit v1.3