Changeset 7309
- Timestamp:
- 03/18/08 16:58:31 (4 months ago)
- Files:
-
- django/trunk/docs/generic_views.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/generic_views.txt
r7294 r7309 752 752 If the results are paginated, the context will contain these extra variables: 753 753 754 * **New in Django development version:** ``paginator``: An instance of 755 ``django.core.paginator.Paginator``. 756 757 * **New in Django development version:** ``page_obj``: An instance of 758 ``django.core.paginator.Page``. 759 760 In older versions of Django, before ``paginator`` and ``page_obj`` were added 761 to this template's context, the template included several other variables 762 related to pagination. Note that you should *NOT* use these variables anymore; 763 use ``paginator`` and ``page_obj`` instead, because they let you do everything 764 these old variables let you do (and more!). But for legacy installations, 765 here's a list of those old template variables: 766 754 767 * ``results_per_page``: The number of objects per page. (Same as the 755 768 ``paginate_by`` parameter.) … … 778 791 page. 779 792 780 * **New in Django development version:** ``page_range``: A list of the781 page numbers that are available. This is1-based.793 * ``page_range``: A list of the page numbers that are available. This is 794 1-based. 782 795 783 796 Notes on pagination
