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 1f4fa32 commit 5a7f376Copy full SHA for 5a7f376
djangosaml2/views.py
@@ -35,12 +35,7 @@
35
from django.template import TemplateDoesNotExist
36
from django.utils.http import is_safe_url
37
from django.utils.six import text_type, binary_type
38
-try:
39
- from django.views.decorators.csrf import csrf_exempt
40
-except ImportError:
41
- # Django 1.0 compatibility
42
- def csrf_exempt(view_func):
43
- return view_func
+from django.views.decorators.csrf import csrf_exempt
44
45
from saml2 import BINDING_HTTP_REDIRECT, BINDING_HTTP_POST
46
from saml2.client import Saml2Client
0 commit comments