2👍
✅
You need to deal with nested object creation. By default, is not supported, you need to rewrite create()
and update()
methods from your serializers.
Here, there is an example from DRF docs
👤levi
Source:stackexchange.com