Fix doc string of get_page_url()
This commit is contained in:
parent
0e84c707cb
commit
538a06e986
@ -353,8 +353,7 @@ class Pagination(object):
|
|||||||
|
|
||||||
def get_page_url(self, request, page_no):
|
def get_page_url(self, request, page_no):
|
||||||
"""
|
"""
|
||||||
Get a new page based of the request, the new page number,
|
Get a new page url based of the request, and the new page number.
|
||||||
and existing get parameters.
|
|
||||||
"""
|
"""
|
||||||
path_info = request.path_info
|
path_info = request.path_info
|
||||||
get_params = request.GET
|
get_params = request.GET
|
||||||
@ -362,4 +361,3 @@ class Pagination(object):
|
|||||||
new_get_params['page'] = page_no
|
new_get_params['page'] = page_no
|
||||||
return "%s?%s" % (
|
return "%s?%s" % (
|
||||||
path_info, urllib.urlencode(new_get_params))
|
path_info, urllib.urlencode(new_get_params))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user