From d6c326623fb10c4413d478fbf7fa7cc7049bb13b Mon Sep 17 00:00:00 2001 From: Xavier Ordoquy Date: Wed, 25 Nov 2015 07:37:01 +0100 Subject: [PATCH] Make DRF compatible with multi template engine in Django 1.8 --- rest_framework/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 56d006efb..de8e77ae7 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -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: