From 1fcb4917336bb284035107edd31d3d39d49c411e Mon Sep 17 00:00:00 2001 From: Adnan Umer Date: Thu, 16 Mar 2017 00:52:07 +0500 Subject: [PATCH] Updated Django 1.10 Version Check --- tenant_schemas/template_loaders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tenant_schemas/template_loaders.py b/tenant_schemas/template_loaders.py index 7cf1342..24c36da 100644 --- a/tenant_schemas/template_loaders.py +++ b/tenant_schemas/template_loaders.py @@ -14,7 +14,7 @@ from django.utils._os import safe_join from django.utils.encoding import force_bytes from tenant_schemas.postgresql_backend.base import FakeTenant -DJANGO_1_10 = DJANGO_VERSION[1] >= 10 +DJANGO_1_10 = DJANGO_VERSION[0] == 1 and DJANGO_VERSION[1] >= 10 if DJANGO_1_10: from django.template import Origin, TemplateDoesNotExist