Add request in return on tamplatetag
1 files changed, 1 insertions(+), 0 deletions(-) M pagination/templatetags/pagination_tags.py
M pagination/templatetags/pagination_tags.py => pagination/templatetags/pagination_tags.py +1 -0
@@ 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,