AltSchool / dynamic-rest

Dynamic extensions for Django REST Framework
MIT License
831 stars 109 forks source link

Fix/links context bug #292

Closed ryochiji closed 4 years ago

ryochiji commented 4 years ago

Fixes bug where serializer context wasn't available in relational link endpoints. Main issue was that a new serializer was being created without being linked to the parent serializer, making the context unavailable (since context isn't stored in child serializers, but is rather read from the root serializer).