Re: Accessing queryset in serializer

2019-06-28 Thread Alan Crosswell
Not sure this is useful, but https://django-rest-framework-json-api.readthedocs.io/en/stable/ has this already by default. This assumes you want to use jsonapi.org serialization On Fri, Jun 28, 2019 at 8:41 AM Mathias Nielsen wrote: > Hi > I am trying do use this approach > https://medium.co

Accessing queryset in serializer

2019-06-28 Thread Mathias Nielsen
Hi I am trying do use this approach https://medium.com/quant-five/speed-up-django-nested-foreign-key-serializers-w-prefetch-related-ae7981719d3f#04cf to handle nested relationship. We have a lot of those and I would like to automate the handling of these as much as possible. The linked solutio