Writable nested serializers - to_representation() not showing unless required = True #9468
Unanswered
mangelozzi
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
-
Following this example:
Writable nested serializers
Its seems quite surprising that if one does:
The
to_representation
will not include the tracks information.Further surprisingly, by change I discovered
to_representation
will show the the nested serializer if one marks the field as required:Seems like a bug to me, I would like to confirm it is one before raising an issue.
Beta Was this translation helpful? Give feedback.
All reactions