Changes between Version 3 and Version 4 of PaginatorTag
- Timestamp:
- Oct 3, 2006, 5:09:20 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PaginatorTag
v3 v4 34 34 35 35 def paginator(context, adjacent_pages=2): 36 """Adds pagination context variables for first, adjacent and next page links 37 in addition to those already populated by the object_list generic view.""" 36 """ 37 To be used in conjunction with the object_list generic view. 38 39 Adds pagination context variables for use in displaying first, adjacent and 40 last page links in addition to those created by the object_list generic 41 view. 42 """ 38 43 page_numbers = [n for n in \ 39 44 range(context["page"] - adjacent_pages, context["page"] + adjacent_pages + 1) \