grandlyon: decode collectivity passed in command line

This commit is contained in:
Frédéric Péters 2020-05-15 16:04:37 +02:00
parent c8b9d2adf2
commit 11e9b99ce0
1 changed files with 1 additions and 1 deletions

View File

@ -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)