fnp
/
django-pagination.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added test suite, and prevented pagination if the elusion would take up only one...
[django-pagination.git]
/
pagination
/
middleware.py
1
class PaginationMiddleware(object):
2
def process_request(self, request):
3
try:
4
request.page = int(request['page'])
5
except KeyError:
6
request.page = 1