mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +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:
parent
1e9150443e
commit
37f7ef41fb
3 changed files with 25 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue