      def get(self, request, *args, **kwargs):
          queryset = self.queryset if self.queryset else self.model.objects.all()
          return queryset.filer(**kwargs)
  
      post = put = delete = http_method_not_allowed 
</s> remove     put = delete = http_method_not_allowed
 </s> add     put = delete = None </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         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             return Resource(status.HTTP_404_NOT_FOUND)
 </s> add             return Response(status.HTTP_404_NOT_FOUND)
      def get(self, request, *args, **kwargs):
          queryset = self.queryset if self.queryset else self.model.objects.all()
          return queryset.filer(**kwargs)
  

keep keep keep keep replace
 Fix up tests and examples after refactoring 
djangorestframework/modelresource.py