We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12116dc commit 9698258Copy full SHA for 9698258
csp/middleware.py
@@ -6,21 +6,9 @@
6
from functools import partial
7
8
from django.conf import settings
9
+from django.utils.deprecation import MiddlewareMixin
10
from django.utils.functional import SimpleLazyObject
11
-try:
12
- from django.utils.deprecation import MiddlewareMixin
13
-except ImportError:
14
-
15
- class MiddlewareMixin(object):
16
- """
17
- If this middleware doesn't exist, this is an older version of django
18
- and we don't need it.
19
20
21
- pass
22
23
24
from csp.utils import build_policy
25
26
0 commit comments