1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-04-27 20:43:46 +03:00

Merge pull request from kevin-brown/compat_fix

Fix bugfix note
This commit is contained in:
Tom Christie 2014-01-02 23:26:25 -08:00
commit 4caa9416e5

View File

@ -98,7 +98,7 @@ You can determine your currently installed version using `pip freeze`:
class DisablePaginationMixin(object):
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 super(DisablePaginationMixin, self).get_paginate_by(queryset)