Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#24226 closed New feature (fixed)

Need to be able to change "(None)" display for null fields in Django admin

Reported by: meesterguyperson Owned by: Loek van Gent
Component: Generic views Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

We have a particular changelist view that is very busy, lots of columns, and because the items there house lots of different kinds of items, there are lots of null fields depending on the items in question. Wherever there is a null field, "(None)" is displayed. I would like to be able to change this to "-" or even nothing, so as to make the changelist view more presentable. There are a couple things on stackoverflow about this, but nothing that looks really official. Would be really nice if this could be done on a per modeladmin basis, but I'd settle for an admin wide solution too. Any chances of this coming along anytime soon?

http://stackoverflow.com/questions/18324030/how-to-change-empty-changelist-value-in-django-admin

http://stackoverflow.com/questions/28174881/in-the-django-admin-changelist-how-do-i-display-a-blank-space-instead-of-the-de?noredirect=1#comment44719629_28174881

Change History (4)

comment:1 by Wim Feijen, 9 years ago

Triage Stage: UnreviewedAccepted

"-" seems a much better default than "(None)" which is confusing and language-specific.

comment:2 by Loek van Gent, 9 years ago

Owner: changed from nobody to Loek van Gent
Status: newassigned

comment:3 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In e4a578e:

Fixed #24226 -- Changed admin EMPTY_CHANGELIST_VALUE from (None) to -

comment:4 by Tim Graham <timograham@…>, 9 years ago

In a535e4ac:

Added myself to AUTHORS; refs #24226.

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