diff --git a/portail_citoyen/management/commands/export-for-authentic.py b/portail_citoyen/management/commands/export-for-authentic.py index ec76c2a..4043cbb 100644 --- a/portail_citoyen/management/commands/export-for-authentic.py +++ b/portail_citoyen/management/commands/export-for-authentic.py @@ -1,6 +1,7 @@ import sys import locale import logging +import json from django.contrib.auth.models import User, Group from django.contrib.auth import get_user_model @@ -113,7 +114,7 @@ class Command(BaseCommand): required=required) av = AttributeValue( attribute=attributes[field.attname], - content=value) + content=json.dumps(value)) av.owner = new_user attribute_values.append(av) for attribute in attributes.values():