      def get(self, request, *args, **kwargs):
          queryset = self.queryset if self.queryset else self.model.objects.all()
          return queryset.filter(**kwargs)
  
      put = delete = http_method_not_allowed
  
  class QueryModelResource(ModelResource):
      """Resource with default operations for list.
      TODO: provide filter/order/num_results/paging, and a create operation to create queries."""
      allowed_methods = ('GET',)
 
</s> remove     post = put = delete = http_method_not_allowed </s> add  </s> remove         return [method.upper() for method in self.http_method_names if hasattr(self, method)]
 </s> add         return [method.upper() for method in self.http_method_names if getattr(self, method, None)] </s> remove     def get(self, request, auth, unique_id):
 </s> add     def get(self, request, unique_id): </s> remove         lexer = get_lexer_by_name(content['lexer'])
        linenos = 'table' if content['linenos'] else False
        options = {'title': content['title']} if content['title'] else {}
        formatter = HtmlFormatter(style=content['style'], linenos=linenos, full=True, **options)
 </s> add         lexer = get_lexer_by_name(self.CONTENT['lexer'])
        linenos = 'table' if self.CONTENT['linenos'] else False
        options = {'title': self.CONTENT['title']} if self.CONTENT['title'] else {}
        formatter = HtmlFormatter(style=self.CONTENT['style'], linenos=linenos, full=True, **options) </s> remove     allowed_methods = anon_allowed_methods = ('GET',)
 </s> add 
    put = delete = None
      def get(self, request, *args, **kwargs):
          queryset = self.queryset if self.queryset else self.model.objects.all()
          return queryset.filter(**kwargs)
  
    put = delete = None
  
  class QueryModelResource(ModelResource):
      """Resource with default operations for list.
      TODO: provide filter/order/num_results/paging, and a create operation to create queries."""
      allowed_methods = ('GET',)
keep keep keep keep replace keep keep keep keep keep
 Fix up tests and examples after refactoring 
djangorestframework/modelresource.py