You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SPECS
It enable developers to run model.full_clean(), when serializers.is_valid() is called.
It also have limited support to nested writable serializer. Developers can pass into **kwargs parameters, other foreignKey not yet saved into db.
It is a valid compromise to help DRY purpose?
The text was updated successfully, but these errors were encountered:
Start Django Rest Framework 3.0 announcement Model.full_clean() is not called before save instance into db.
This policy moves validation business logic from models to views and break DRY purpose.
encode/django-rest-framework#7850 (comment)
Workaround
ValidateModelSerializer
NestedValidateModelSerializer
SPECS
It enable developers to run model.full_clean(), when serializers.is_valid() is called.
It also have limited support to nested writable serializer. Developers can pass into **kwargs parameters, other foreignKey not yet saved into db.
It is a valid compromise to help DRY purpose?
The text was updated successfully, but these errors were encountered: