Changeset 7503
- Timestamp:
- 04/28/08 20:09:53 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/newforms/widgets.py
r7366 r7503 572 572 if initial is None: 573 573 initial = [u'' for x in range(0, len(data))] 574 else: 575 initial = self.decompress(initial) 574 576 for widget, initial, data in zip(self.widgets, initial, data): 575 577 if not widget._has_changed(initial, data): django/branches/newforms-admin/tests/regressiontests/forms/widgets.py
r7351 r7503 896 896 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" />' 897 897 898 >>> w = MyMultiWidget(widgets=(TextInput(), TextInput())) 899 >>> w._has_changed(None, ['john', 'lennon']) 900 True 901 >>> w._has_changed('john__lennon', ['john', 'lennon']) 902 False 903 898 904 # SplitDateTimeWidget ######################################################### 899 905
