From efc1f341953429562005ea1a33cd1074bd162007 Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Thu, 2 Aug 2018 14:07:25 +0200 Subject: [PATCH] user api: fix attribute value serialization (#24401) --- src/authentic2/custom_user/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/custom_user/models.py b/src/authentic2/custom_user/models.py index 3c62848d..fefa767b 100644 --- a/src/authentic2/custom_user/models.py +++ b/src/authentic2/custom_user/models.py @@ -219,7 +219,7 @@ class User(AbstractBaseUser, PermissionMixin): def to_json(self): d = {} for av in AttributeValue.objects.with_owner(self): - d[str(av.attribute.name)] = av.to_python() + d[str(av.attribute.name)] = av.content d.update({ 'uuid': self.uuid, 'username': self.username, -- 2.18.0