From 7b69a76bc3e6176756f759a7368f623e8009c5e7 Mon Sep 17 00:00:00 2001 From: Semen Pupkov Date: Thu, 6 Sep 2012 15:42:49 +0600 Subject: [PATCH] Add request in return on tamplatetag --- pagination/templatetags/pagination_tags.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pagination/templatetags/pagination_tags.py b/pagination/templatetags/pagination_tags.py index ae843b1..045db7d 100644 --- a/pagination/templatetags/pagination_tags.py +++ b/pagination/templatetags/pagination_tags.py @@ -206,6 +206,7 @@ def paginate(context, window=DEFAULT_WINDOW, hashtag=''): pages.extend(differenced) to_return = { 'MEDIA_URL': settings.MEDIA_URL, + 'request': context['request'], 'pages': pages, 'records': records, 'page_obj': page_obj, -- 2.45.2