When following code is invoked:
@register.inclusion_tag('template.html', takes_context=True)
def method(context, content_template):
contents = template.loader.get_template(content_template)
context['content'] = contents.render(context)
return context
I get warning:
RemovedInDjango110Warning: render() must be called with a dict, not a RequestContext.
Warning disappers when second line of method is refactored to:
context['content'] = contents.render(context.flatten())
But I guess it is a walkaround, not a properly solution of this problem.