Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#15292 closed (fixed)

Useless piece of code in admin_list.py

Reported by: Julien Phalip Owned by: nobody
Component: contrib.admin Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

While I was in the neighbourhood I noticed a small useless piece of code. The case where value is None is already handled in display_for_field().

Attachments (1)

15292_useless_code_in_admin_list_py.diff (662 bytes) - added by Julien Phalip 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by Julien Phalip

comment:1 Changed 6 years ago by Russell Keith-Magee

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 6 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

In [15570]:

Fixed #15292 -- Removed redundant code in admin list template tag. Thanks to Julien Phalip for the report.

comment:3 Changed 6 years ago by Russell Keith-Magee

In [15574]:

[1.2.X] Fixed #15292 -- Removed redundant code in admin list template tag. Thanks to Julien Phalip for the report.

Backport of r15570 from trunk.

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