model_to_dict is a function in the "playhouse" extension, which automagically converts a model into a Python dictionary. In other words; you can easily convert data from complex SQL queries straight to JSON.
StackShare is a
community of engineers, CTOs, VPEs, and
developers from some of the world's top startups and companies.