diff options
| author | Tom Christie | 2012-11-08 21:46:53 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-11-08 21:46:53 +0000 |
| commit | bc6f2a170306fbc1cba3a4e504a908ebc72d54b7 (patch) | |
| tree | 8722b675ea4c5ce29822476f304e1389c870a4af /rest_framework/tests/pagination.py | |
| parent | c78b34d5017a05220bcd623946b4f52cc2d119cd (diff) | |
| download | django-rest-framework-bc6f2a170306fbc1cba3a4e504a908ebc72d54b7.tar.bz2 | |
Make default FILTER_BACKEND = None
Diffstat (limited to 'rest_framework/tests/pagination.py')
| -rw-r--r-- | rest_framework/tests/pagination.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rest_framework/tests/pagination.py b/rest_framework/tests/pagination.py index 7f8cd524..713a7255 100644 --- a/rest_framework/tests/pagination.py +++ b/rest_framework/tests/pagination.py @@ -4,7 +4,7 @@ from django.core.paginator import Paginator from django.test import TestCase from django.test.client import RequestFactory from django.utils import unittest -from rest_framework import generics, status, pagination +from rest_framework import generics, status, pagination, filters from rest_framework.compat import django_filters from rest_framework.tests.models import BasicModel, FilterableItem @@ -31,6 +31,7 @@ if django_filters: model = FilterableItem paginate_by = 10 filter_class = DecimalFilter + filter_backend = filters.DjangoFilterBackend class IntegrationTestPagination(TestCase): |
