Changes between Version 1 and Version 2 of PaginatorTag
- Timestamp:
- Jul 7, 2006, 5:12:22 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PaginatorTag
v1 v2 26 26 def paginator(context, adjacent_pages=2): 27 27 """Adds pagination context variables for first, adjacent and next page links 28 in addition to those already populated by the object_ detailgeneric view."""28 in addition to those already populated by the object_list generic view.""" 29 29 page_numbers = [n for n in \ 30 30 range(context["page"] - adjacent_pages, context["page"] + adjacent_pages + 1) \