﻿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
2583	can't use ForeignKey in list view (class Admin: list_display)	235	nobody	"If we'll use next code:
{{{
class Articles(models.Model):
    ....
    author = models.ForeignKey(Authors, blank=True, null=True, verbose_name='Автор статьи') #models.CharField('Автор статьи', maxlength=100, blank=True)
    ....
    class Admin:
        list_display = ('pub_date', ... 'author')
}}}

The list view of objects will be broken in header - there would be no header for this ForeignKey. In ''django/contrib/admin/templates/admin/change_list_result.html'' defined:
{{{
   <th{{ header.class_attrib }}>
}}}
and actualy it renders into (with ''TEMPLATE_STRING_IF_INVALID = ""TEMPLATE_STRING_IF_INVALID""'' in settings.py):
{{{
   <thTEMPLATE_STRING_IF_INVALID>
}}}

ForeignKey field lacks this attribute
"	defect	closed	contrib.admin	dev	normal	worksforme		jos@…	Unreviewed	0	0	0	0	0	0
