]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
settings: Disable Debug Toolbar for all Django<1.7
authorStephen Finucane <stephen.finucane@intel.com>
Wed, 23 Mar 2016 11:37:35 +0000 (11:37 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 24 Mar 2016 17:34:57 +0000 (17:34 +0000)
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@intel.com>
patchwork/settings/dev.py

index 8e3fc69c87e183ee9b1461e5aec0c3eaa4c86af4..8c95c335128ec22a33e61d8d8107485f553d7627 100644 (file)
@@ -20,7 +20,7 @@ from .base import *  # noqa
 
 # Models
 
-if django.VERSION > (1, 6):
+if django.VERSION >= (1, 7):
     INSTALLED_APPS += [
         'debug_toolbar'
     ]