serializer.py
9 KB
-
Pass request to related serializers · 1b49c5e3
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.
Sean C. Farley committed