beda-software / drf-writable-nested

Writable nested model serializer for Django REST Framework
Other
1.07k stars 115 forks source link

Parent instance is inaccesible in child validate data for reverse #156

Open allexpy opened 2 years ago

allexpy commented 2 years ago

This should be added in the code. To achieve this you can add the instance to self._get_serializer_for_field() context, this was a huge problem for me and it remains unresolved untill you update the package.

ir4y commented 2 years ago

Hi @allexpy thank you for the contribution. May I kindly ask you to provide a pull request and test case for the reported enhancement?