What I'm doing is to add a property on the models I want to serialize,
and to use a custom json serializer for this purpose.
Have a look at
https://github.com/spiral-project/ihatemoney/blob/master/budget/models.py#L12
and
https://github.com/ametaireau/flask-rest/blob/master/flask_rest.py#L144
However, this isn't automatic, and it is probably possible to automate
this without having to explicitly specify what you want to serialize
(like Julien did)
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.