Updated Django 1.10 Version Check

This commit is contained in:
Adnan Umer 2017-03-16 00:52:07 +05:00 committed by Gary Reynolds
parent f258521ebe
commit 1fcb491733
1 changed files with 1 additions and 1 deletions

View File

@ -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