From: Stephen Finucane Date: Wed, 23 Mar 2016 11:37:35 +0000 (+0000) Subject: settings: Disable Debug Toolbar for all Django<1.7 X-Git-Tag: v2.0.0-rc1~409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cab52992449611f74bcdff1b456af8149de29f8b;p=thirdparty%2Fpatchwork.git settings: Disable Debug Toolbar for all Django<1.7 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 --- diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py index 8e3fc69c..8c95c335 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' ]