Fix python3 error "'dict_keys' object has no attribute 'sort'"

This commit is contained in:
Valentin Samir 2016-06-21 09:53:43 +02:00
parent 919f36bf54
commit 46cfaa6745

View File

@ -82,5 +82,5 @@ setting_default('CAS_FEDERATE_PROVIDERS', {})
if settings.CAS_FEDERATE: if settings.CAS_FEDERATE:
settings.CAS_AUTH_CLASS = "cas_server.auth.CASFederateAuth" settings.CAS_AUTH_CLASS = "cas_server.auth.CASFederateAuth"
CAS_FEDERATE_PROVIDERS_LIST = settings.CAS_FEDERATE_PROVIDERS.keys() CAS_FEDERATE_PROVIDERS_LIST = list(settings.CAS_FEDERATE_PROVIDERS.keys())
CAS_FEDERATE_PROVIDERS_LIST.sort() CAS_FEDERATE_PROVIDERS_LIST.sort()