﻿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
36114	Fields in list_display_links are not links if their values are whitespace.	Antoliny	Antoliny	"In the admin list page, when the value of `list_display` is set to '__str__' (default option), if the model's `__str__` is composed entirely of blank values, the link will not appear.
{{{
class Post(models.Model):
    title = models.CharField(max_length=128)
    content = models.TextField()
    like = models.IntegerField(default=0)
    
    def __str__(self):
        return ""       ""
}}}
[[Image(balnk.png)]]
In a typical situation it would be fine, but when `__str__` is set in `list_display_links`, <a> tag innerHTML becomes empty, so resulting in the loss of the link functionality to navigate to the object.
{{{
class PostAdmin(admin.ModelAdmin):
    list_display_links = [""__str__""]
    list_display = [""__str__"", ""title""]
}}}
[[Image(str_blank.png)]]"	Bug	closed	contrib.admin	5.1	Normal	fixed	list_display_links, list_display		Ready for checkin	1	0	0	0	0	0
