mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
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
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user