summaryrefslogtreecommitdiffstats
path: root/grandlyon
diff options
context:
space:
mode:
Diffstat (limited to 'grandlyon')
-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)