Commit 6fd98138 by Tom Christie

Merge pull request #3672 from linovia/feature/multitemplate

Make DRF compatible with multi template engine in Django 1.8
parents ff0eeaf7 d6c32662
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment