Opened 8 years ago

Closed 8 years ago

Last modified 8 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:


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

Change History (3)

comment:1 Changed 8 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 follow-up: Changed 8 years ago by ubernostrum

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

Because it is None.

comment:3 in reply to: ↑ 2 Changed 8 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