Django

Code

Changeset 2543

Show
Ignore:
Timestamp:
03/21/06 09:32:57 (2 years ago)
Author:
adrian
Message:

Fixed #1510 -- Fixed ReST error in docs/generic_views.txt. Thanks, akaihola and Andy Dustman

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/generic_views.txt

    r2453 r2543  
    295295    Takes the following optional arguments: 
    296296 
    297         =======================  ================================================= 
    298         Argument                 Description 
    299         =======================  ================================================= 
    300         ``paginate_by``          If set to an integer, the view will paginate 
    301                                  objects with ``paginate_by`` objects per page. 
    302                                  The view will expect a ``page`` GET param with 
    303                                  the (zero-indexed) page number. 
    304  
    305         ``allow_empty``          If ``False`` and there are no objects to display, 
    306                                  the view will raise a 404 instead of displaying 
    307                                  an empty index page. ``False`` is default. 
    308         ``template_object_name`` **New in Django development version.** Designates 
    309                                  the name of the object template variable. Default 
    310                                  is ``'object'``. 
    311         =======================  ================================================= 
     297        ========================  ================================================= 
     298        Argument                  Description 
     299        ========================  ================================================= 
     300        ``paginate_by``           If set to an integer, the view will paginate 
     301                                  objects with ``paginate_by`` objects per page. 
     302                                  The view will expect a ``page`` GET param with 
     303                                  the (zero-indexed) page number. 
     304 
     305        ``allow_empty``           If ``False`` and there are no objects to display, 
     306                                  the view will raise a 404 instead of displaying 
     307                                  an empty index page. ``False`` is default. 
     308 
     309        ``template_object_name``  **New in Django development version.** Designates 
     310                                  the name of the object template variable. Default 
     311                                  is ``'object'``. 
     312        ========================  ================================================= 
    312313 
    313314    Uses the template ``app_label/module_name_list`` by default.