Re: Serializing QuerySets and Python objects best practices

2008-12-23 Thread Jeff Anderson
vernon wrote: > Hi, > > I'm trying to do something fairly simple (and doable), but I was > wondering if there was a "best practices" approach. I'm developing a > client-heavy app, and I'd like to return something like this to my > JavaScript: > > {"posts": Post.objects.all(), "comments": Comment.ob

Serializing QuerySets and Python objects best practices

2008-12-23 Thread vernon
Hi, I'm trying to do something fairly simple (and doable), but I was wondering if there was a "best practices" approach. I'm developing a client-heavy app, and I'd like to return something like this to my JavaScript: {"posts": Post.objects.all(), "comments": Comment.objects.all()} Right now, I'