From 9fc3cfb247f83b4d08dad04a2bf967862cff543d Mon Sep 17 00:00:00 2001 From: =?utf8?q?H=C3=A5vard=20Grimelid?= Date: Tue, 30 Mar 2010 19:32:05 +0200 Subject: [PATCH 1/1] Removed hashtag support. --- pagination/templates/pagination/pagination.html | 2 +- pagination/templatetags/pagination_tags.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pagination/templates/pagination/pagination.html b/pagination/templates/pagination/pagination.html index d5a94b8..37cef40 100644 --- a/pagination/templates/pagination/pagination.html +++ b/pagination/templates/pagination/pagination.html @@ -11,7 +11,7 @@ {% ifequal page page_obj.number %} {{ page }} {% else %} - {{ page }} + {{ page }} {% endifequal %} {% else %} ... diff --git a/pagination/templatetags/pagination_tags.py b/pagination/templatetags/pagination_tags.py index fa8fd48..fa87b37 100644 --- a/pagination/templatetags/pagination_tags.py +++ b/pagination/templatetags/pagination_tags.py @@ -104,7 +104,7 @@ class AutoPaginateNode(template.Node): context['page_obj'] = page_obj return u'' -def paginate(context, window=DEFAULT_WINDOW, hashtag=None): +def paginate(context, window=DEFAULT_WINDOW): """ Renders the ``pagination/pagination.html`` template, resulting in a Digg-like display of the available pages, given the current page. If there @@ -209,7 +209,6 @@ def paginate(context, window=DEFAULT_WINDOW, hashtag=None): 'records': records, 'page_obj': page_obj, 'paginator': paginator, - 'hashtag': hashtag, 'is_paginated': paginator.count > paginator.per_page, } if 'request' in context: -- 2.20.1