Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related serializers may need access to the request to properly serialize a child resource. For example, reverse() in djangorestframework.reverse uses request if available to return an absolute URL. While the parent resource has access to the request to generate the absolute URL, the child resource does not.
- Loading branch information
1b49c5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. This is a much better solution to the problem I was facing. Thanks.