Code

Opened 2 years ago

Closed 2 years ago

#18106 closed Bug (invalid)

documents error on topic pagination

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

Description

{% for contact in contacts %}

should be

{% for contact in contacts.object_list %}

Attachments (0)

Change History (5)

comment:1 in reply to: ↑ description Changed 2 years ago by zenglu.liu@…

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Replying to zenglu.liu@…:

{% for contact in contacts %}

should be

{% for contact in contacts.object_list %}

the document is here:

https://docs.djangoproject.com/en/1.4/topics/pagination/

comment:2 Changed 2 years ago by anonymous

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

comment:3 Changed 2 years ago by aaugustin

  • Resolution invalid deleted
  • Status changed from closed to reopened

If this is really invalid, please explain why :)

comment:4 Changed 2 years ago by anonymous

I am sorry, I did not read the following lines:

Changed in Django 1.4: Previously, you would need to use {% for contact in contacts.object_list %}, since the Page object was not iterable.

The document is OK.

comment:5 Changed 2 years ago by claudep

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

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.