﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28404	Django admin empty_value/empty_value_display doesn't check for empty strings	Mark Koh	Alexander Lazarević	"According to the [https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.empty_value_display Django documentation], `empty_value_display` should ""display value for record’s fields that are empty (None, empty string, etc.)""  However, currently this value is only returned when the field value is '''None''' and does not check for empty strings.  This can be seen here - https://github.com/django/django/blob/5a52d932ef4da8228d82673314341c2c86602248/django/contrib/admin/utils.py#L420

Thus, if you have a CharField with a value of `''` (empty string), the `empty_value_display` value will not appear, contrary to the documentation.

How to reproduce:
 - Create a model with a `CharField(blank=True, null=True)`
 - Create a model_admin and add that field to the `list_display` list
 - Create two instances of the model, one with that field set to None and another with it set to `''` (empty string)
 - Open the admin panel and find those models, you will see that the instance with None shows `-` but the one with the empty string shows nothing."	Bug	closed	contrib.admin	dev	Normal	fixed	empty value display admin charfield	Sardorbek Imomaliev Sarah Boyce	Ready for checkin	1	0	0	0	0	1
