Re: Pagination and Filtering

2017-02-02 Thread Thiago Mambretti
'state'] On Thu, Feb 2, 2017 at 12:13 PM, Xavier Ordoquy wrote: > This looks more like you’ve set a list for pagination class for that view. > What does your view looks like ? > > Regards, > Xavier Ordoquy, > Linovia. > > Le 2 févr. 2017 à 16:09, Thiago Mam

Pagination and Filtering

2017-02-02 Thread Thiago Mambretti
Hi all, Is it possible to use the default pagination backend along with the following filters? 'django_filters.rest_framework.DjangoFilterBackend', 'rest_framework.filters.SearchFilter', 'rest_framework.filters.OrderingFilter', I'm using a ModelViewSet and the API only when I have only the pag

Re: Pagination and Filtering

2017-02-02 Thread Thiago Mambretti
vagrant/.virtualenvs/prospect/local/lib/python2.7/site-packages/rest_framework/generics.py" in paginator 163. self._paginator = self.pagination_class() Exception Type: TypeError at /api/states/ Exception Value: 'list' object is not callable On Thursday, February 2,