Hi.
I'm using drf-writable-nested packet, which provides a CreateMixin and a
UpdateMixin on serializers, avoiding creating code for writble serializers.
Now, I need to get a sum from "price" field children components and
update the parents component field with this value.
I've tried to do that overriding the "create" method, by editing
"validated_data", but even changing that variable, it seems that there's
no effect, once the field still save on database with the original value
which comes from request.
Does anybody has an idea about that behavior?
--
You received this message because you are subscribed to the Google Groups "Django
REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-rest-framework/6550357d-2c1b-55f6-fb14-d28164ff2a0c%40gmail.com.