aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/models.py
diff options
context:
space:
mode:
authorAymeric Augustin2014-01-08 21:32:02 +0100
committerAymeric Augustin2014-01-08 21:39:05 +0100
commit37fadc0a0af4db7a0d3dd750e6a43efe4aed5ad9 (patch)
treec478611cc14ea13ba1b1ea193e95346a12a110f7 /debug_toolbar/models.py
parent72c101794f273435fdbeeb6da82ec3fadf99991c (diff)
downloaddjango-debug-toolbar-37fadc0a0af4db7a0d3dd750e6a43efe4aed5ad9.tar.bz2
Add an AppConfig for Django 1.7.
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()