diff options
| author | Sébastien Piquemal | 2012-02-14 10:10:04 +0200 |
|---|---|---|
| committer | Sébastien Piquemal | 2012-02-14 10:10:04 +0200 |
| commit | c04cb5145c4398cfac090ca7eef032296a04446f (patch) | |
| tree | f556b30b0af21980d599bd716a82cfc997679a6f /djangorestframework/mixins.py | |
| parent | 821844bb11e5262fb0dfc2fecf2add8fe18d3210 (diff) | |
| parent | ba1e3b46998254e12578d75428669751e105735b (diff) | |
| download | django-rest-framework-c04cb5145c4398cfac090ca7eef032296a04446f.tar.bz2 | |
merged with trunk
Diffstat (limited to 'djangorestframework/mixins.py')
| -rw-r--r-- | djangorestframework/mixins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/mixins.py b/djangorestframework/mixins.py index 43dce870..cf746839 100644 --- a/djangorestframework/mixins.py +++ b/djangorestframework/mixins.py @@ -499,7 +499,7 @@ class PaginatorMixin(object): Constructs a url used for getting the next/previous urls """ url = URLObject.parse(self.request.get_full_path()) - url = url.add_query_param('page', page_number) + url = url.set_query_param('page', page_number) limit = self.get_limit() if limit != self.limit: |
