Changes between Initial Version and Version 1 of Ticket #30596, comment 2


Ignore:
Timestamp:
Jun 26, 2019, 11:13:33 AM (5 years ago)
Author:
Evgeniy Krysanov

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30596, comment 2

    initial v1  
    1414}}}
    1515
    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.
     16When 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.
    1717
    1818But it would be better to see the fix in Django source. I can write a PR with unitests if you wish.
Back to Top