Nested serializers strips primary key from validated_data in update method #8915
Unanswered
erdos4d
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to do a ManyToMany update with a nested serializer and when I go to set the field with the validated data, the primary keys are not there for me to form a queryset with. A simplified example of what I'm facing would be the following:
The
update
method in the team serializer is what I want to do, but when my data makes it into thevalidated_data
object, the primary key has been removed. Is there any way to tell the framework to keep it in? Thanks for your help.Beta Was this translation helpful? Give feedback.
All reactions