mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fix call to .resolve_context (#4371)
This commit is contained in:
parent
e1768bdc16
commit
0781182646
|
@ -168,7 +168,7 @@ class TemplateHTMLRenderer(BaseRenderer):
|
|||
|
||||
if hasattr(self, 'resolve_context'):
|
||||
# Fallback for older versions.
|
||||
context = self.resolve_context(self, data, request, response)
|
||||
context = self.resolve_context(data, request, response)
|
||||
else:
|
||||
context = self.get_template_context(data, renderer_context)
|
||||
return template_render(template, context, request=request)
|
||||
|
|
Loading…
Reference in New Issue
Block a user