Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed notes about legacy Paginator object in the generic view docs …

…(refs #7830).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cd3def1e4e3233a22098433a5efeaf371d3a2f89 1 parent 1b1b8d0
Gary Wilson Jr. authored August 03, 2008

Showing 1 changed file with 2 additions and 35 deletions. Show diff stats Hide diff stats

  1. 37  docs/generic_views.txt
37  docs/generic_views.txt
@@ -875,41 +875,8 @@ If the results are paginated, the context will contain these extra variables:
875 875
 ``page_obj`` (**New in Django development version**)
876 876
     An instance of ``django.core.paginator.Page``.
877 877
 
878  
-In older versions of Django, before ``paginator`` and ``page_obj`` were added
879  
-to this template's context, the template included several other variables
880  
-related to pagination. Note that you should *NOT* use these variables anymore;
881  
-use ``paginator`` and ``page_obj`` instead, because they let you do everything
882  
-these old variables let you do (and more!). But for legacy installations,
883  
-here's a list of those old template variables:
884  
-
885  
-    * ``results_per_page``: The number of objects per page. (Same as the
886  
-      ``paginate_by`` parameter.)
887  
-
888  
-    * ``has_next``: A boolean representing whether there's a next page.
889  
-
890  
-    * ``has_previous``: A boolean representing whether there's a previous page.
891  
-
892  
-    * ``page``: The current page number, as an integer. This is 1-based.
893  
-
894  
-    * ``next``: The next page number, as an integer. If there's no next page,
895  
-      this will still be an integer representing the theoretical next-page
896  
-      number. This is 1-based.
897  
-
898  
-    * ``previous``: The previous page number, as an integer. This is 1-based.
899  
-
900  
-    * ``last_on_page``: The number of the
901  
-      last result on the current page. This is 1-based.
902  
-
903  
-    * ``first_on_page``: The number of the
904  
-      first result on the current page. This is 1-based.
905  
-
906  
-    * ``pages``: The total number of pages, as an integer.
907  
-
908  
-    * ``hits``: The total number of objects across *all* pages, not just this
909  
-      page.
910  
-
911  
-    * ``page_range``: A list of the page numbers that are available. This is
912  
-      1-based.
  878
+See the `pagination documentation`_ for more information on the ``Paginator``
  879
+and ``Page`` objects.
913 880
 
914 881
 Notes on pagination
915 882
 ~~~~~~~~~~~~~~~~~~~

0 notes on commit cd3def1

Please sign in to comment.
Something went wrong with that request. Please try again.