Code

Opened 4 years ago

Closed 4 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 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by ctao

comment:1 Changed 4 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

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.