Ticket #27161: Running_coerce_in_TypedChoiceField_to_python_method.patch

File Running_coerce_in_TypedChoiceField_to_python_method.patch, 630 bytes (added by Roman Karpovich, 8 years ago)

patch for ticket

  • django/forms/fields.py

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    850850            )
    851851        return value
    852852
    853     def clean(self, value):
    854         value = super(TypedChoiceField, self).clean(value)
     853    def to_python(self, value):
     854        value = super(TypedChoiceField, self).to_python(value)
    855855        return self._coerce(value)
    856856
    857857
Back to Top