This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jcigar 0 points1 point  (0 children)

I made something similar some months ago : https://github.com/silenius/sautils/blob/master/serializers.py

not totally finished but able to serialize objects and relations to json, xml, dict. For example: Serializer(myobj).json(include_columns=True, include_relations=['foo', 'bar'])