Open jhorman opened 10 years ago
I think the assumption is that the list contains dicts. I'm not sure about map
taking *args
.
My use was I was trying to serialize an arbitrary JSONField out, and it failed. I could have dicts of lists of lists of dicts, etc.
https://github.com/coleifer/flask-peewee/blob/0.6.5/flask_peewee/serializer.py#L25
This fails in a few ways. clean_data will be called, but actually will receive the first item in the array, since map accepts
*args
. Even if the array was passed through, it will not work b/c array doesn't have a.items()
method. I think a safer implementation would be something like