Code

Opened 7 years ago

Closed 7 years ago

Last modified 7 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> ?

Attachments (0)

Change History (3)

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

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.