diff options
| author | Simon Charette | 2014-02-09 00:50:03 -0500 |
|---|---|---|
| committer | Simon Charette | 2014-02-09 00:50:03 -0500 |
| commit | 4d45865bd73ba16801950e3f47199aa6da0f7c19 (patch) | |
| tree | 88cb9ab4ee1440526c1c4e9adb0bbc39bff96305 /rest_framework/tests/test_pagination.py | |
| parent | 00b187710623d8efda62f207573fa4e356d1f8ef (diff) | |
| download | django-rest-framework-4d45865bd73ba16801950e3f47199aa6da0f7c19.tar.bz2 | |
Allow filter model to be a subclass of the queryset one.
Diffstat (limited to 'rest_framework/tests/test_pagination.py')
| -rw-r--r-- | rest_framework/tests/test_pagination.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/rest_framework/tests/test_pagination.py b/rest_framework/tests/test_pagination.py index cadb515f..cd299613 100644 --- a/rest_framework/tests/test_pagination.py +++ b/rest_framework/tests/test_pagination.py @@ -8,17 +8,11 @@ from django.utils import unittest from rest_framework import generics, status, pagination, filters, serializers from rest_framework.compat import django_filters from rest_framework.test import APIRequestFactory -from rest_framework.tests.models import BasicModel +from rest_framework.tests.models import BasicModel, FilterableItem factory = APIRequestFactory() -class FilterableItem(models.Model): - text = models.CharField(max_length=100) - decimal = models.DecimalField(max_digits=4, decimal_places=2) - date = models.DateField() - - class RootView(generics.ListCreateAPIView): """ Example description for OPTIONS. |
