Skip to content

Commit 5a7f376

Browse files
committed
Remove legacy Django 1.0 compatibility
1 parent 1f4fa32 commit 5a7f376

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

djangosaml2/views.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@
3535
from django.template import TemplateDoesNotExist
3636
from django.utils.http import is_safe_url
3737
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
38+
from django.views.decorators.csrf import csrf_exempt
4439

4540
from saml2 import BINDING_HTTP_REDIRECT, BINDING_HTTP_POST
4641
from saml2.client import Saml2Client

0 commit comments

Comments
 (0)