| 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 | ======================== ================================================= |
|---|