      def get(self, request, *args, **kwargs):
          queryset = self.queryset if self.queryset else self.resource.model.objects.all()
          return queryset.filter(**kwargs)
  
  
 
</s> remove     class Meta:
        ordering = ('created',)

    @models.permalink
    def get_absolute_url(self):
        return ('blog-post', (), {'key': self.key})

    @property
    @models.permalink
    def comments_url(self):
        """Link to a resource which lists all comments for this blog post."""
        return ('comments', (), {'blogpost': self.key})

    def __unicode__(self):
        return self.title

 </s> add  </s> remove         for obj in self.__class__.objects.order_by('-pk')[MAX_POSTS:]:
 </s> add         for obj in self.__class__.objects.order_by('-created')[MAX_POSTS:]: </s> remove             MyModel.objects.all()[0].delete()
    
    @models.permalink
    def get_absolute_url(self):
        return ('my-model-resource', (self.pk,))
 </s> add             MyModel.objects.all().order_by('-created')[0].delete()
 </s> remove     
    class Meta:
        ordering = ('created',)
 </s> add 
        ordering = getattr(self.resource, 'ordering', None)
        if ordering:
            args = as_tuple(ordering)
            queryset = queryset.order_by(*args)
      def get(self, request, *args, **kwargs):
          queryset = self.queryset if self.queryset else self.resource.model.objects.all()
        ordering = getattr(self.resource, 'ordering', None)
        if ordering:
            args = as_tuple(ordering)
            queryset = queryset.order_by(*args)
          return queryset.filter(**kwargs)
  
  
keep add keep keep keep
 Fixing some of the last blocking issues 
djangorestframework/mixins.py