serializers.py
36.7 KB
-
Improve handling of 'empty' values for ChoiceField · 53258908
The empty value defaults back to '' (for backwards-compatibility) but is changed automatically to None for ModelSerializers if the `null` property is set on the db field.
Mathieu Pillard committed