paging maintains other GET parameters -- contributed by jezdez
[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