Removed hashtag support.
authorHåvard Grimelid <hgrimelid@gmail.com>
Tue, 30 Mar 2010 17:32:05 +0000 (19:32 +0200)
committerHåvard Grimelid <hgrimelid@gmail.com>
Tue, 30 Mar 2010 17:32:05 +0000 (19:32 +0200)
pagination/templates/pagination/pagination.html
pagination/templatetags/pagination_tags.py

index d5a94b8..37cef40 100644 (file)
@@ -11,7 +11,7 @@
             {% ifequal page page_obj.number %}
                 <span class="current page">{{ page }}</span>
             {% else %}
-                <a href="?page={{ page }}{{ getvars }}{{ hashtag }}" class="page">{{ page }}</a>
+                <a href="?page={{ page }}{{ getvars }}" class="page">{{ page }}</a>
             {% endifequal %}
         {% else %}
             ...
index fa8fd48..fa87b37 100644 (file)
@@ -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: