Opened 18 years ago
Closed 18 years ago
#6823 closed (fixed)
ObjectPaginator Error on Lists
| Reported by: | 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)
Change History (4)
by , 18 years ago
| Attachment: | paginator.patch added |
|---|
comment:1 by , 18 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 , 18 years ago
| Cc: | added |
|---|---|
| Has patch: | set |
| Keywords: | paginator added; pagiantor removed |
The patch works for me aswell.
Patch