How to make double nested writable serializers #8616
Unanswered
JasperAlexander
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make double nested writable serializers, but I'm constantly getting KeyErrors and TypeErrors. What's wrong with the following code? I've also tried using drf-writable-nested, but this ain't work.
Example POST body
Creating a single nested writable serializer does work without drf-writable-nested by overwriting the create method.
I've tried to overwrite the create method inside the PartSerializer, but this doesn't work.
models.py
serializers.py
Beta Was this translation helpful? Give feedback.
All reactions