X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/7c5c426f894736e93a31c32ed8b95600488d2919..38e127a205b49ab137d554895d426cb8e7dcd785:/cas_provider/__init__.py?ds=inline diff --git a/cas_provider/__init__.py b/cas_provider/__init__.py index 2ce1450..ff16364 100644 --- a/cas_provider/__init__.py +++ b/cas_provider/__init__.py @@ -1,12 +1,16 @@ +from __future__ import unicode_literals + from django.conf import settings __all__ = [] _DEFAULTS = { 'CAS_TICKET_EXPIRATION': 5, # In minutes + 'CAS_CUSTOM_ATTRIBUTES_FORMATER': 'cas_provider.attribute_formatters.jasig', + 'CAS_AUTO_REDIRECT_AFTER_LOGOUT': False, } -for key, value in _DEFAULTS.iteritems(): +for key, value in _DEFAULTS.items(): try: getattr(settings, key) except AttributeError: