Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#13039 closed (invalid)

'ChangeList' object has no attribute 'formset'

Reported by: ctao Owned by: nobody
Component: contrib.admin Version: master
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: UI/UX:

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 ctao 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by ctao

comment:1 Changed 5 years ago by kmtracey

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

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 Changed 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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