[PATCH 1/2] settings: Disable Debug Toolbar for all Django<1.7

Stephen Finucane stephen.finucane at intel.com
Thu Mar 24 05:34:38 AEDT 2016


The django-debug-toolbar project doesn't support Django 1.6, but the
check used to disable this plugin for this version only works for
Django 1.6.0 and less. Enable it for all versions of Django < 1.7.

Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
 patchwork/settings/dev.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index 8e3fc69..8c95c33 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -20,7 +20,7 @@ from .base import *  # noqa
 
 # Models
 
-if django.VERSION > (1, 6):
+if django.VERSION >= (1, 7):
     INSTALLED_APPS += [
         'debug_toolbar'
     ]
-- 
2.0.0



More information about the Patchwork mailing list