Call django Model.full_clean(exclude=None, validate_unique=True) when validate WritableNestedModelSerializer
pip install drf-writable-nested-fullclean
Add the following code into settings.py
DRF_FULL_CLEAN = {
"DEBUG" : False #set True if you want to see debug print
}