293 | | ======================= ================================================= |
294 | | Argument Description |
295 | | ======================= ================================================= |
296 | | ``paginate_by`` If set to an integer, the view will paginate |
297 | | objects with ``paginate_by`` objects per page. |
298 | | The view will expect a ``page`` GET param with |
299 | | the (zero-indexed) page number. |
| 293 | ======================== ================================================= |
| 294 | Argument Description |
| 295 | ======================== ================================================= |
| 296 | ``paginate_by`` If set to an integer, the view will paginate |
| 297 | objects with ``paginate_by`` objects per page. |
| 298 | The view will expect a ``page`` GET param with |
| 299 | the (zero-indexed) page number. |
301 | | ``allow_empty`` If ``False`` and there are no objects to display, |
302 | | the view will raise a 404 instead of displaying |
303 | | an empty index page. ``False`` is default. |
304 | | ``template_object_name`` **New in Django development version.** Designates |
305 | | the name of the object template variable. Default |
306 | | is ``'object'``. |
307 | | ======================= ================================================= |
| 301 | ``allow_empty`` If ``False`` and there are no objects to display, |
| 302 | the view will raise a 404 instead of displaying |
| 303 | an empty index page. ``False`` is default. |
| 304 | ``template_object_name`` **New in Django development version.** Designates |
| 305 | the name of the object template variable. Default |
| 306 | is ``'object'``. |
| 307 | ======================== ================================================= |