mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
[Django 1.11] Upgrade to Django 1.11
This commit is contained in:
committed by
Raphael Michel
parent
74d9921be1
commit
0f2875e89a
@@ -1,6 +0,0 @@
|
||||
from debug_toolbar.middleware import DebugToolbarMiddleware
|
||||
from django.utils.deprecation import MiddlewareMixin
|
||||
|
||||
|
||||
class DebugMiddlewareCompatibilityShim(MiddlewareMixin, DebugToolbarMiddleware):
|
||||
pass
|
||||
@@ -258,7 +258,7 @@ try:
|
||||
import debug_toolbar # noqa
|
||||
if DEBUG:
|
||||
INSTALLED_APPS.append('debug_toolbar.apps.DebugToolbarConfig')
|
||||
MIDDLEWARE.insert(0, 'pretix.helpers.debug.DebugMiddlewareCompatibilityShim')
|
||||
MIDDLEWARE.insert(0, 'debug_toolbar.middleware.DebugToolbarMiddleware')
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user