0001-user-api-fix-attribute-value-serialization-24401.patch
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 |
- |