[Django] #24226: Need to be able to change "(None)" display for null fields in Django admin

8 views
Skip to first unread message

Django

unread,
Jan 27, 2015, 11:46:10 AM1/27/15
to django-...@googlegroups.com
#24226: Need to be able to change "(None)" display for null fields in Django admin
----------------------------------+--------------------
Reporter: meesterguyperson | Owner: nobody
Type: New feature | Status: new
Component: Generic views | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------
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

--
Ticket URL: <https://code.djangoproject.com/ticket/24226>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 27, 2015, 6:21:05 PM1/27/15
to django-...@googlegroups.com
#24226: Need to be able to change "(None)" display for null fields in Django admin
----------------------------------+------------------------------------

Reporter: meesterguyperson | Owner: nobody
Type: New feature | Status: new
Component: Generic views | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Changes (by wimfeijen):

* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted


Comment:

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

--
Ticket URL: <https://code.djangoproject.com/ticket/24226#comment:1>

Django

unread,
Mar 12, 2015, 6:27:50 AM3/12/15
to django-...@googlegroups.com
#24226: Need to be able to change "(None)" display for null fields in Django admin
----------------------------------+-------------------------------------
Reporter: meesterguyperson | Owner: gannetson
Type: New feature | Status: assigned

Component: Generic views | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------------+-------------------------------------
Changes (by gannetson):

* owner: nobody => gannetson
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/24226#comment:2>

Django

unread,
Mar 12, 2015, 9:41:13 AM3/12/15
to django-...@googlegroups.com
#24226: Need to be able to change "(None)" display for null fields in Django admin
----------------------------------+-------------------------------------
Reporter: meesterguyperson | Owner: gannetson
Type: New feature | Status: closed

Component: Generic views | Version: 1.7
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"e4a578e70e2e48ab792e38c67579808a1def6024" e4a578e]:
{{{
#!CommitTicketReference repository=""
revision="e4a578e70e2e48ab792e38c67579808a1def6024"
Fixed #24226 -- Changed admin EMPTY_CHANGELIST_VALUE from (None) to -
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24226#comment:3>

Django

unread,
Mar 12, 2015, 7:26:36 PM3/12/15
to django-...@googlegroups.com
#24226: Need to be able to change "(None)" display for null fields in Django admin
----------------------------------+-------------------------------------
Reporter: meesterguyperson | Owner: gannetson
Type: New feature | Status: closed
Component: Generic views | Version: 1.7
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"a535e4acdcf1e75cc4d6302726876efc4c3a91c9" a535e4ac]:
{{{
#!CommitTicketReference repository=""
revision="a535e4acdcf1e75cc4d6302726876efc4c3a91c9"
Added myself to AUTHORS; refs #24226.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24226#comment:4>

Reply all
Reply to author
Forward
0 new messages