  MAX_POSTS = 10
  
  class BlogPosts(RootModelResource):
      """A resource with which lists all existing blog posts and creates new blog posts."""
      anon_allowed_methods = allowed_methods = ('GET', 'POST',)
      model = models.BlogPost
      fields = BLOG_POST_FIELDS
  
  class BlogPostInstance(ModelResource):
      """A resource which represents a single blog post."""
 
</s> remove     anon_allowed_methods = allowed_methods = ('GET', 'PUT', 'DELETE')
 </s> add  </s> remove     anon_allowed_methods = allowed_methods = ('GET', 'POST',)
 </s> add  </s> remove     def get(self, request, auth):
 </s> add     def get(self, request): </s> remove     allowed_methods = anon_allowed_methods = ('GET',)
 </s> add  </s> remove     allowed_methods = anon_allowed_methods = ('GET',)
 </s> add 
  MAX_POSTS = 10
  
  class BlogPosts(RootModelResource):
      """A resource with which lists all existing blog posts and creates new blog posts."""

      model = models.BlogPost
      fields = BLOG_POST_FIELDS
  
  class BlogPostInstance(ModelResource):
      """A resource which represents a single blog post."""
keep keep keep keep replace keep keep keep keep keep
 Fix up tests and examples after refactoring 
examples/blogpost/views.py