Changes between Version 2 and Version 3 of Ticket #25233, comment 3
- Timestamp:
- Aug 7, 2015, 10:23:03 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25233, comment 3
v2 v3 16 16 17 17 try: 18 19 initial_value = field.to_python(hidden_widget.value_from_datadict( 20 21 self.data, self.files, initial_prefixed_name)) 22 18 initial_value = field.to_python(hidden_widget.value_from_datadict(self.data, self.files, initial_prefixed_name)) 23 19 except ValidationError: 24 25 20 # Always assume data has changed if validation fails. 26 27 21 self._changed_data.append(name) 28 29 22 continue 30 31 if field.has_changed(initial_value, data_value): 32 33 ... 34 23 if field.has_changed(initial_value, data_value): 35 24 self._changed_data.append(name) 36 37 return self._changed_data 25 return self._changed_data 38 26 39 27 @property 40 41 28 def media(self): 42 29