Code

Opened 7 years ago

Closed 7 years ago

#5823 closed (invalid)

error in pagination documentation

Reported by: mariarchi Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Documentation at http://www.djangoproject.com/documentation/models/pagination/ mentions the paginator attribute called page_range:

The paginator can provide a list of all available pages

paginator.page_range

[1, 2]

in reality, paginator has no such attribute.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Karen Tracey <kmtracey@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Looks to me like it does:

http://code.djangoproject.com/browser/django/trunk/django/core/paginator.py

Perhaps you're using a checkout prior to revision 6146?

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.