Permalink
Browse files

Rename paging lib and fix syntax error

  • Loading branch information...
1 parent e28a4b7 commit a1e3281120d43d4d0696a1d9f0ab4aed82e1442e @dcramer committed Jul 15, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.rst
  2. +1 −1 paging/templatetags/{paging.py → paging_extras.py}
View
@@ -21,7 +21,7 @@ Django
Django templatetags require django-templatetag-sugar::
- {% load paging %}
+ {% load paging_extras %}
{% paginate my_queryset from request as results %}
{{ results.paging }}
@@ -23,7 +23,7 @@ def paginate(request, queryset_or_list, per_page=25):
return dict(objects=context['paginator'].get('objects', []), paging=paging)
register.object(paginate)
-@tag(register, [Variable('queryset_or_list'), Constant('from'), Variable('request'), Optional([Constant('as'), Name('asvar')]), Optional([Constant('per_page'), Variable('per_page')])]):
+@tag(register, [Variable('queryset_or_list'), Constant('from'), Variable('request'), Optional([Constant('as'), Name('asvar')]), Optional([Constant('per_page'), Variable('per_page')])])
def paginate(context, queryset_or_list, request, asvar, per_page=25):
"""{% paginate queryset_or_list from request as foo[ per_page 25] %}"""
context_instance = RequestContext(request)

0 comments on commit a1e3281

Please sign in to comment.