mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Make DRF compatible with multi template engine in Django 1.8
This commit is contained in:
parent
ff0eeaf77a
commit
d6c326623f
|
@ -221,7 +221,7 @@ def template_render(template, context=None, request=None):
|
|||
:param request: Request instance
|
||||
:return: rendered template as SafeText instance
|
||||
"""
|
||||
if django.VERSION < (1, 9) or isinstance(template, Template):
|
||||
if django.VERSION < (1, 8) or isinstance(template, Template):
|
||||
if request:
|
||||
context = RequestContext(request, context)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user