From their nested example:
class BlogSerializer(Serializer):
title = fields.String()
author = fields.Nested(UserSerializer)
# This is different! I'm passing in a context
serialized = BlogSerializer(blog, context={'test': 1})
The UserSerializer
doesn't seem to get the context when serializing the blog.
How do I pass the context down to the nested serializers?