summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2008-04-29 01:09:53 +0000
committerBrian Rosner <brosner@gmail.com>2008-04-29 01:09:53 +0000
commit0ce76a92f37ffd718fed98296c0cd2cecfaa6993 (patch)
tree8a9d20e19fe371d52948696e7e81dd424cf60891 /tests/regressiontests/forms
parent886005078d66bd779ad3d6434d5699fbc17cfed1 (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 'tests/regressiontests/forms')
-rw-r--r--tests/regressiontests/forms/widgets.py6
1 files changed, 6 insertions, 0 deletions
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'<input id="foo_0" type="text" class="big" value="john" name="name_0" /><br /><
>>> w.render('name', ['john', 'lennon'])
u'<input id="bar_0" type="text" class="big" value="john" name="name_0" /><br /><input id="bar_1" type="text" class="small" value="lennon" name="name_1" />'
+>>> w = MyMultiWidget(widgets=(TextInput(), TextInput()))
+>>> w._has_changed(None, ['john', 'lennon'])
+True
+>>> w._has_changed('john__lennon', ['john', 'lennon'])
+False
+
# SplitDateTimeWidget #########################################################
>>> w = SplitDateTimeWidget()