Skip to content

Commit dc47974

Browse files
author
Pamela McA'Nulty
committed
Fix issue #26 - Django 1.10 support
1 parent bee7d68 commit dc47974

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/plugin_test.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ def test_settings():
6767
if hasattr(django, "setup"):
6868
django.setup()
6969

70+
from django.template import Context, Template # noqa
71+
from django.template.loader import get_template # noqa
72+
from django.test import TestCase # noqa
7073

71-
from django.template import Context, Template # noqa
72-
from django.template.loader import get_template # noqa
73-
from django.test import TestCase # noqa
74+
if django.VERSION >= (1, 8):
75+
from django.template.backends.django import DjangoTemplates # noqa
7476

7577

7678
class DjangoPluginTestCase(StdStreamCapturingMixin, TempDirMixin, TestCase):

0 commit comments

Comments
 (0)