Projet

Général

Profil

0001-user-api-fix-attribute-value-serialization-24401.patch

Paul Marillonnet, 02 août 2018 14:08

Télécharger (915 octets)

Voir les différences:

Subject: [PATCH] user api: fix attribute value serialization (#24401)

 src/authentic2/custom_user/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/authentic2/custom_user/models.py
219 219
    def to_json(self):
220 220
        d = {}
221 221
        for av in AttributeValue.objects.with_owner(self):
222
            d[str(av.attribute.name)] = av.to_python()
222
            d[str(av.attribute.name)] = av.content
223 223
        d.update({
224 224
            'uuid': self.uuid,
225 225
            'username': self.username,
226
-