X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/bf06f0f8cde976e4e579b059fdb0e8a8bc279f01..14190defb1cc8b35e4f47a7b3b64788754aa1097:/cas_provider/__init__.py diff --git a/cas_provider/__init__.py b/cas_provider/__init__.py index b70697c..22cedc3 100644 --- a/cas_provider/__init__.py +++ b/cas_provider/__init__.py @@ -4,13 +4,14 @@ __all__ = [] _DEFAULTS = { 'CAS_TICKET_EXPIRATION': 5, # In minutes - 'CAS_CUSTOM_ATTRIBUTES_CALLBACK': None, + '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: setattr(settings, key, value) except ImportError: - pass \ No newline at end of file + pass