json - django-piston: how to get values of a many to many field? -


I have several models with a model I want to get all the information on a specific record (information related to other models Including) return by JSON.

How to get the Django-Piston to display those values? I would only be happy with the primary key or can you recommend another option?

I may be wrong, but it should do this:

  Category PersonHandler: Model = Person Area = ('id', ('friend', ('id', 'name')), 'name') def (self, requested): Return Person.objects.filter (...)  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -