mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #22097 -- Fixed change detection for TypedChoiceField
Thanks Igor Mitrenko for the report.
This commit is contained in:
@@ -191,6 +191,8 @@ class Field(object):
|
||||
initial_value = initial if initial is not None else ''
|
||||
try:
|
||||
data = self.to_python(data)
|
||||
if hasattr(self, '_coerce'):
|
||||
data = self._coerce(data)
|
||||
except ValidationError:
|
||||
return True
|
||||
data_value = data if data is not None else ''
|
||||
|
||||
Reference in New Issue
Block a user