Opened 16 years ago

Closed 16 years ago

#10524 closed (invalid)

Pagination via object_list generic view: Docs don't point out all the variables added to the context

Reported by: Beetle_B Owned by: nobody
Component: Generic views Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When using pagination with the list_detait.object_list generic view, the following variables are added to the context:

previous 
next
page
has_next
has_previous

and perhaps others. Yet, I don't see this documented anywhere. These are all methods of the Page object, and the generic view docs do say that page_obj is added to the context.

If this is legacy behavior that will be removed, I'd really like to know so that I don't use them, and so that I explicitly use the page_obj methods.

Change History (1)

comment:1 by Alex Gaynor, 16 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top