mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Fixed #24428 -- Fixed has_changed for fields with coercion
Thanks Carsten Fuchs for the report.
This commit is contained in:
@@ -195,6 +195,7 @@ class Field(six.with_metaclass(RenameFieldMethods, object)):
|
||||
data = self.to_python(data)
|
||||
if hasattr(self, '_coerce'):
|
||||
data = self._coerce(data)
|
||||
initial_value = self._coerce(initial_value)
|
||||
except ValidationError:
|
||||
return True
|
||||
data_value = data if data is not None else ''
|
||||
|
||||
Reference in New Issue
Block a user