Dynamic Models In Tastypie
I have a class which returns json [{ 'title': 'Test Blog Title 1', 'content': 'Blog Content', 'author_name': 'User 1' }, {
Solution 1:
If you' don't declare fields, they won't be accessible in the bundle. However, they'll always be accessible in the request.
You'll need to have at least one predefined field, to be used as a primary key. While you don't explicitly need to create it, you should have a way of knowing what object to return if the user issues a GET request for some object.
Post a Comment for "Dynamic Models In Tastypie"