#24474 closed New feature (fixed)
Make display for null fields in Django admin configurable through settings
Reported by: | Loek van Gent | Owned by: | Loek van Gent |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Display value for null fields is '-' now. It would be nice if this is configurable in settings. '-' can be a bit hard to click if you use it in a list filter.
This relates to changes made in https://code.djangoproject.com/ticket/24226.
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 (18)
comment:1 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 10 years ago
Component: | Uncategorized → contrib.admin |
---|
comment:3 by , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Uncategorized → New feature |
Version: | 1.7 → master |
comment:4 by , 10 years ago
Needs documentation: | set |
---|---|
Needs tests: | set |
comment:5 by , 10 years ago
Has patch: | set |
---|---|
Needs documentation: | unset |
Needs tests: | unset |
comment:8 by , 10 years ago
Patch needs improvement: | unset |
---|
comment:11 by , 10 years ago
Patch needs improvement: | set |
---|---|
Resolution: | fixed |
Status: | closed → new |
comment:14 by , 9 years ago
Status: | new → assigned |
---|
comment:15 by , 9 years ago
Patch needs improvement: | unset |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Looks good, pending a cosmetic comment.
comment:16 by , 9 years ago
Do you mean this one?
https://github.com/gannetson/django/commit/fcb527df09a8087763725e123255eebca2474e76
By settings, I think attributes of
ModelAdmin
andAdminSite
would probably be the way to go.