Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5621 closed (worksforme)

Emtpy ForeignKey fields shown as "(None)"

Reported by: anonymous Owned by: nobody
Component: contrib.admin Version:
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Why do we represent empty ForeignKey fields with "(None)" instead of using an empty <td></td> ?

Change History (3)

comment:1 Changed 9 years ago by Collin Grady <cgrady@…>

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

(None) seems more accurate than nothing to me, since it's set to NULL, not just an empty string or such (which doesn't fit with an fkey)

comment:2 Changed 9 years ago by James Bennett

Resolution: worksforme
Status: newclosed

Because it is None.

comment:3 in reply to:  2 Changed 9 years ago by anonymous

Replying to ubernostrum:

Because it is None.

Then we should uniform displaying of None fields and None ForeignKeys since normally fields are displayed as "None" while empty foreignkeys are displayed as "(None)"

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