  
  
  # Model for regression test for #285
  
  class Comment(RESTFrameworkModel):
      email = models.EmailField()
 
</s> remove         self.object_list = self.get_queryset()
 </s> add         self.object_list = self.get_filtered_queryset() </s> remove         Create 26 BasicModel intances.
 </s> add         Create 26 BasicModel instances. </s> remove 
 </s> add import django_filters </s> remove from rest_framework.tests.models import BasicModel
 </s> add from rest_framework.tests.models import BasicModel, FilterableItem
import django_filters
# Model to test filtering.
class FilterableItem(RESTFrameworkModel):
    text = models.CharField(max_length=100)
    decimal = models.DecimalField(max_digits=4, decimal_places=2)
    date = models.DateField()


  
  
# Model to test filtering.
class FilterableItem(RESTFrameworkModel):
    text = models.CharField(max_length=100)
    decimal = models.DecimalField(max_digits=4, decimal_places=2)
    date = models.DateField()


  # Model for regression test for #285
  
  class Comment(RESTFrameworkModel):
      email = models.EmailField()
keep add keep keep keep keep
 First attempt at adding filter support.

The filter support uses django-filter to work its magic. 
rest_framework/tests/models.py