Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#15292 closed (fixed)

Useless piece of code in admin_list.py

Reported by: julien 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 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by julien

comment:1 Changed 4 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 4 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

In [15570]:

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

comment:3 Changed 4 years ago by russellm

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