Opened 8 years ago

Closed 8 years ago

#7781 closed (fixed)

Paginator missing documentation

Reported by: hiukkanen Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: pagination
Cc: joni.lahtinen@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Paginator or obj_page doesn't include results_per_page.

Change History (7)

comment:1 Changed 8 years ago by hiukkanen

milestone: 1.0

comment:2 Changed 8 years ago by hiukkanen

obj_page = page_obj

page_obj.object_list|len is not always the same as results_per_page (last page).

comment:3 Changed 8 years ago by hiukkanen

s/len/length

comment:4 Changed 8 years ago by Gary Wilson

Resolution: invalid
Status: newclosed

Is Paginator.per_page what you're looking for?

comment:5 Changed 8 years ago by hiukkanen

Im not very familiar with python, but if that per_page is an attribute should it be documented here: http://www.djangoproject.com/documentation/pagination/

Thanks for your reply.

comment:6 Changed 8 years ago by Karen Tracey

Component: Template systemDocumentation
Resolution: invalid
Status: closedreopened
Summary: Django development version limits information in paginationPaginator missing documentation

As noted by hiukkanen, the replacement for ObjectPaginator's num_per_page is not documented. Makes it appear from reading the doc that there is no replacement for an old ObjectPaginator function, causing great distress now that ObjectPagintor is Gone. (Well, maybe more minor annoyance than great distress...)

comment:7 Changed 8 years ago by Gary Wilson

Resolution: fixed
Status: reopenedclosed

(In [8195]) Fixed #7781 -- Documented the per_page argument/attribute for Paginator objects. Also documented Paginator's other arguments and made use of ReST definition lists. Thanks to hiukkanen for the
report.

Note: See TracTickets for help on using tickets.
Back to Top