Opened 17 years ago

Closed 17 years ago

#6823 closed (fixed)

ObjectPaginator Error on Lists

Reported by: dmarrah@… Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords: paginator pagination
Cc: Rick@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

django.core.paginator.ObjectPaginator appears to have had some changes today. Paging lists no longer works. Paging QuerySets is still works fine. The issue appears to be in the method ObjectPaginator._get_count(self). (line 175 - SVN 7306)

You might try fixing it by catching a TypeError rather than an AttributeError. I tried this locally and it seemed to fix it.

Attachments (1)

paginator.patch (498 bytes ) - added by mbonetti@… 17 years ago.
Patch

Download all attachments as: .zip

Change History (4)

by mbonetti@…, 17 years ago

Attachment: paginator.patch added

Patch

comment:1 by mbonetti@…, 17 years ago

Keywords: pagiantor pagination added

Confirmed.

I just attached a patch implementing what the reporter suggested and which fixes the issue.

comment:2 by Rick@…, 17 years ago

Cc: Rick@… added
Has patch: set
Keywords: paginator added; pagiantor removed

The patch works for me aswell.

comment:3 by Ramiro Morales, 17 years ago

Resolution: fixed
Status: newclosed

This was fixed on [7353].

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