aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/models.py')
-rw-r--r--debug_toolbar/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/debug_toolbar/models.py b/debug_toolbar/models.py
index eb16e3a..1874748 100644
--- a/debug_toolbar/models.py
+++ b/debug_toolbar/models.py
@@ -1,7 +1,9 @@
from __future__ import absolute_import, unicode_literals
+import django
+
from debug_toolbar import settings as dt_settings
-if dt_settings.PATCH_SETTINGS:
+if dt_settings.PATCH_SETTINGS and django.VERSION[:2] < (1, 7):
dt_settings.patch_all()