diff options
| -rw-r--r-- | debug_toolbar/settings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/settings.py b/debug_toolbar/settings.py index 5c1cd3d..5c2919c 100644 --- a/debug_toolbar/settings.py +++ b/debug_toolbar/settings.py @@ -142,8 +142,8 @@ if 'INTERCEPT_REDIRECTS' in USER_CONFIG: except KeyError: # We wanted to remove it, but it didn't exist. This is fine pass - elif not 'debug_toolbar.panels.redirects.RedirectsPanel' \ - in CONFIG['DISABLE_PANELS']: + elif 'debug_toolbar.panels.redirects.RedirectsPanel' \ + not in CONFIG['DISABLE_PANELS']: # RedirectsPanel should be disabled CONFIG['DISABLE_PANELS'].add( 'debug_toolbar.panels.redirects.RedirectsPanel' |
