diff options
Diffstat (limited to 'examples/blogpost/views.py')
| -rw-r--r-- | examples/blogpost/views.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/blogpost/views.py b/examples/blogpost/views.py index ef970466..59a3fb9f 100644 --- a/examples/blogpost/views.py +++ b/examples/blogpost/views.py @@ -1,13 +1,10 @@ -from djangorestframework.response import Response -from djangorestframework.resource import Resource from djangorestframework.modelresource import ModelResource, RootModelResource -from djangorestframework import status from blogpost import models BLOG_POST_FIELDS = ('created', 'title', 'slug', 'content', 'absolute_url', 'comment_url', 'comments_url') COMMENT_FIELDS = ('username', 'comment', 'created', 'rating', 'absolute_url', 'blogpost_url') - +MAX_POSTS = 10 class BlogPosts(RootModelResource): """A resource with which lists all existing blog posts and creates new blog posts.""" |
