X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9baaf0aa657110f7481ea24dc6bc68bf4fc64cd1..20be4d9d8dad31ecbda183f4b5c74c9d80799f72:/apps/pagination/middleware.py diff --git a/apps/pagination/middleware.py b/apps/pagination/middleware.py deleted file mode 100644 index 0bab76712..000000000 --- a/apps/pagination/middleware.py +++ /dev/null @@ -1,10 +0,0 @@ -class PaginationMiddleware(object): - """ - Inserts a variable representing the current page onto the request object if - it exists in either **GET** or **POST** portions of the request. - """ - def process_request(self, request): - try: - request.page = int(request.REQUEST['page']) - except (KeyError, ValueError): - request.page = 1 \ No newline at end of file