I currently have a Post model with \'title\' and \'summary\' fields. I\'m retrieving all the Posts and returning them as JSON as part of a RESTful API interface.
Here\'
What you want to achieve is subset of fields dumped to json.
What you're doing is serializing whole django's ORM objects. Not good.
Keep it simple:
import json posts = (Post.objects.filter(owner=authenticated_user) .values('id', 'title', 'summary')) json_posts = json.dumps(list(posts))