From: HÃ¥vard Grimelid Date: Tue, 30 Mar 2010 17:32:05 +0000 (+0200) Subject: Removed hashtag support. X-Git-Tag: release-2.0~36^2~2 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/9fc3cfb247f83b4d08dad04a2bf967862cff543d?page=%7B%7B%20page%20%7D%7D%7B%7B%20getvars%20%7D%7D%7B%7B%20hashtag%20%7D%7D Removed hashtag support. --- 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: