fnp
/
django-cas-provider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compatibility up to Django 2.1, dropped < 1.8. Removed unused code, fixed tests.
[django-cas-provider.git]
/
cas_provider
/
__init__.py
diff --git
a/cas_provider/__init__.py
b/cas_provider/__init__.py
index
1dd6c7a
..
ff16364
100644
(file)
--- a/
cas_provider/__init__.py
+++ b/
cas_provider/__init__.py
@@
-1,3
+1,5
@@
+from __future__ import unicode_literals
+
from django.conf import settings
__all__ = []
from django.conf import settings
__all__ = []
@@
-8,7
+10,7
@@
_DEFAULTS = {
'CAS_AUTO_REDIRECT_AFTER_LOGOUT': False,
}
'CAS_AUTO_REDIRECT_AFTER_LOGOUT': False,
}
-for key, value in _DEFAULTS.ite
rite
ms():
+for key, value in _DEFAULTS.items():
try:
getattr(settings, key)
except AttributeError:
try:
getattr(settings, key)
except AttributeError: