summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-05-15 14:04:37 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-05-15 14:04:37 (GMT)
commit11e9b99ce0e9154ce61d28f44aae9cd96abcf941 (patch)
tree146f42fdcafacafa2751153ae7d172aad074936d
parentc8b9d2adf2235c46ff9d1a9d714abf1f28160803 (diff)
downloadmisc-fred-11e9b99ce0e9154ce61d28f44aae9cd96abcf941.zip
misc-fred-11e9b99ce0e9154ce61d28f44aae9cd96abcf941.tar.gz
misc-fred-11e9b99ce0e9154ce61d28f44aae9cd96abcf941.tar.bz2
grandlyon: decode collectivity passed in command line
-rw-r--r--grandlyon/scripts/mark-admin-roles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grandlyon/scripts/mark-admin-roles.py b/grandlyon/scripts/mark-admin-roles.py
index 66afc58..d535cd3 100644
--- a/grandlyon/scripts/mark-admin-roles.py
+++ b/grandlyon/scripts/mark-admin-roles.py
@@ -13,7 +13,7 @@ from django_rbac.utils import get_role_model, get_ou_model
Ou = get_ou_model()
Role = get_role_model()
-name_dst = sys.argv[1]
+name_dst = sys.argv[1].decode('utf-8')
ou = Ou.objects.get(name=name_dst)
role = Role.objects.get(name=u'Administrateur %s' % name_dst, ou=ou)