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:


Paginator or obj_page doesn't include results_per_page.

Change History (7)

comment:1 Changed 8 years ago by hiukkanen

  • milestone 1.0 deleted
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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


comment:4 Changed 8 years ago by gwilson

  • Resolution set to invalid
  • Status changed from new to closed

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:

Thanks for your reply.

comment:6 Changed 8 years ago by kmtracey

  • Component changed from Template system to Documentation
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Summary changed from Django development version limits information in pagination to Paginator 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 gwilson

  • Resolution set to fixed
  • Status changed from reopened to closed

(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

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