#28404: Django admin empty_value/empty_value_display doesn't check for empty
strings
-------------------------------------+-------------------------------------
Reporter: Mark Koh | Owner: Nazarov
| Georgiy
Type: Bug | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: empty value display | Triage Stage: Accepted
admin charfield |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Comment (by Carlton Gibson):
I haven't yet seen a reason not to re-use `empty_value_display` here
(rather than add a new admin option) but we need to consider when that is
applied:
> There are some cases where I really do want an empty string displayed
(though not in a linked column). Maybe only use it only when it's an auto-
linked field/column? Or maybe only use this behavior in
display_for_field()? (So if you use a custom function/method, you can
still have full control.) — [https://groups.google.com/d/topic/django-
developers/6HbmI3rHdPc/discussion Collin Anderson on Django Dev]
--
Ticket URL: <https://code.djangoproject.com/ticket/28404#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.780a033337c1ecff609b4991a8ff3cbd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.