Breaking changes:
- The
validated_data
representation now contains therest_framework.fields.empty
sentinel value for fields where no value was provided, instead of the default of the dataclass field. The value returned bysave()
is unchanged. This was necessary to support partial updates.
Features & fixes:
- Improved Python 3.9 compatibility.
- Support partial updates.
- Support standard collection generics (PEP 585).
- Support non-generic
list
anddict
typehints. - Support final fields (PEP 591).
- Support auto-generation for list or dictionaries of Any or variable type.
- Set default
max_digits
anddecimal_places
forDecimalField
. - Improved error message when automatic field type deduction fails.