mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #24316 -- Made ModelAdmin.list_display callables use an appropriate CSS class name.
Thanks Berker Peksag for the review.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user