Fixed #24316 -- Made ModelAdmin.list_display callables use an appropriate CSS class name.

Thanks Berker Peksag for the review.
This commit is contained in:
Tim Graham 2015-12-28 15:31:45 -05:00
parent 1e9150443e
commit 37f7ef41fb
3 changed files with 25 additions and 3 deletions

View file

@ -90,7 +90,7 @@ class ChapterXtra1Admin(admin.ModelAdmin):
class ArticleAdmin(admin.ModelAdmin):
list_display = (
'content', 'date', callable_year, 'model_year', 'modeladmin_year',
'model_year_reversed', 'section',
'model_year_reversed', 'section', lambda obj: obj.title,
)
list_editable = ('section',)
list_filter = ('date', 'section')