From 37fadc0a0af4db7a0d3dd750e6a43efe4aed5ad9 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 8 Jan 2014 21:32:02 +0100 Subject: Add an AppConfig for Django 1.7. --- debug_toolbar/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debug_toolbar/models.py') 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() -- cgit v1.2.3