Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#13039 closed (invalid)

'ChangeList' object has no attribute 'formset'

Reported by: tangc Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords: results, result_list, ChangeList
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

File django/contrib/admin/templatetags/admin_list.py", line 185, in results

if cl.formset:

AttributeError: 'ChangeList' object has no attribute 'formset'

def results(cl):
    if hasattr(cl, 'formset') and cl.formset:
        for res, form in zip(cl.result_list, cl.formset.forms):

Attachments (1)

diff (536 bytes ) - added by tangc 14 years ago.

Download all attachments as: .zip

Change History (3)

by tangc, 14 years ago

Attachment: diff added

comment:1 by Karen Tracey, 14 years ago

Needs tests: set
Resolution: invalid
Status: newclosed

A ticket with no description of how to trigger the error is not valid.

A patch with no tests is not very helpful.

comment:2 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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