We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c88821 commit fe9b421Copy full SHA for fe9b421
1 file changed
djangosaml2/middleware.py
@@ -9,7 +9,8 @@
9
from django.utils.http import http_date
10
11
12
-SAMESITE_NONE = None if (VERSION[0] < 3.1) else 'None'
+django_version = float('{}.{}'.format(*VERSION[:2]))
13
+SAMESITE_NONE = None if django_version < 3.1 else 'None'
14
15
16
class SamlSessionMiddleware(SessionMiddleware):
0 commit comments