aboutsummaryrefslogtreecommitdiffstats
path: root/docs/topics/release-notes.md
diff options
context:
space:
mode:
authorTom Christie2013-12-14 20:42:58 +0000
committerTom Christie2013-12-14 20:42:58 +0000
commit6b6b255684e8cfc25bf91168b46e9ab6512b800a (patch)
treed7e2854e9d3437dcd968e889c65a3c0f6e6fabf6 /docs/topics/release-notes.md
parentf78b3187df11925caf07f9d86eb868de906c60c8 (diff)
downloaddjango-rest-framework-6b6b255684e8cfc25bf91168b46e9ab6512b800a.tar.bz2
Add note on pagination bugfix. Closes #1293.
Diffstat (limited to 'docs/topics/release-notes.md')
-rw-r--r--docs/topics/release-notes.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/topics/release-notes.md b/docs/topics/release-notes.md
index f171b1f5..d1ace116 100644
--- a/docs/topics/release-notes.md
+++ b/docs/topics/release-notes.md
@@ -89,6 +89,19 @@ You can determine your currently installed version using `pip freeze`:
* Bugfix: `client.force_authenticate(None)` should also clear session info if it exists.
* Bugfix: Client sending empty string instead of file now clears `FileField`.
* Bugfix: Empty values on ChoiceFields with `required=False` now consistently return `None`.
+* Bugfix: Clients setting `page=0` now simply returns the default page size, instead of disabling pagination. [*]
+
+---
+
+[*] Note that the change in `page=0` behaviour fixes what is considered to be a bug in how clients can effect the pagination size. However if you were relying on this behavior you will need to add the following mixin to your list views in order to preserve the existing behavior.
+
+ class DisablePaginationMixin(object):
+ def get_paginate_by(self, queryset=None):
+ if self.request.QUERY_PARAMS['self.paginate_by_param'] == '0':
+ return None
+ return super(DisablePaginationMixin, self).get_paginate_by(queryset)
+
+---
### 2.3.7