summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Marillonnet <pmarillonnet@entrouvert.com>2017-09-25 16:52:15 (GMT)
committerPaul Marillonnet <pmarillonnet@entrouvert.com>2017-09-25 16:52:15 (GMT)
commit171fb85533f9b65b12f5469e44f360a3f4bda2fd (patch)
treebed6356bb14d37ea87176d3a90c87c7742170267
parenta3adea748d7af22459dedc050adab5f54d9fc41e (diff)
downloadpaul-synchro-171fb85533f9b65b12f5469e44f360a3f4bda2fd.zip
paul-synchro-171fb85533f9b65b12f5469e44f360a3f4bda2fd.tar.gz
paul-synchro-171fb85533f9b65b12f5469e44f360a3f4bda2fd.tar.bz2
POC Campus Condorcet : tri alphabetique des champs select partie invitant
-rw-r--r--django/sp_sso/saml/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/sp_sso/saml/utils.py b/django/sp_sso/saml/utils.py
index e0988cb..4fa6d6c 100644
--- a/django/sp_sso/saml/utils.py
+++ b/django/sp_sso/saml/utils.py
@@ -114,6 +114,7 @@ def ldap_get_attribute_from_subtree_nodes(subtree_base, filter, attribute):
description = node_data.get('description', [_('No description')])[0]
choices.append((attribute_value, description))
+ choices.sort(key=lambda x: unicode(x[1], 'utf-8'))
return choices
def ldap_terminate(l):