mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 19:43:59 +03:00
commit
4caa9416e5
|
@ -98,7 +98,7 @@ You can determine your currently installed version using `pip freeze`:
|
||||||
|
|
||||||
class DisablePaginationMixin(object):
|
class DisablePaginationMixin(object):
|
||||||
def get_paginate_by(self, queryset=None):
|
def get_paginate_by(self, queryset=None):
|
||||||
if self.request.QUERY_PARAMS['self.paginate_by_param'] == '0':
|
if self.request.QUERY_PARAMS[self.paginate_by_param] == '0':
|
||||||
return None
|
return None
|
||||||
return super(DisablePaginationMixin, self).get_paginate_by(queryset)
|
return super(DisablePaginationMixin, self).get_paginate_by(queryset)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user