Code

Ticket #5357: generic_views_r6243.diff

File generic_views_r6243.diff, 832 bytes (added by mitja, 7 years ago)

Adds documentation for page argument against r6243

Line 
1Index: docs/generic_views.txt
2===================================================================
3--- docs/generic_views.txt      (revision 6243)
4+++ docs/generic_views.txt      (working copy)
5@@ -699,8 +699,11 @@
6       displayed per page. If this is given, the view will paginate objects with
7       ``paginate_by`` objects per page. The view will expect either a ``page``
8       query string parameter (via ``GET``) or a ``page`` variable specified in
9-      the URLconf. See "Notes on pagination" below.
10+      the URLconf. See `Notes on pagination`_ below.
11 
12+    * ``page``: The current page number, as an integer. This is 1-based.
13+      See `Notes on pagination`_ below.
14+
15     * ``template_name``: The full name of a template to use in rendering the
16       page. This lets you override the default template name (see below).
17