Changes between Initial Version and Version 1 of Ticket #30596, comment 2
- Timestamp:
- Jun 26, 2019, 11:13:33 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30596, comment 2
initial v1 14 14 }}} 15 15 16 When calling `field.has_changed(initial_value, data_value)`there is a call to `data = self.to_python(data)` https://github.com/django/django/blob/master/django/forms/fields.py#L181 but `SplitArrayField` just return original value from this method. My code fix this.16 When calling `field.has_changed(initial_value, data_value)`there is a call to `data = self.to_python(data)` https://github.com/django/django/blob/master/django/forms/fields.py#L181 but `SplitArrayField` just returns the original value from this method. My code fix this. 17 17 18 18 But it would be better to see the fix in Django source. I can write a PR with unitests if you wish.