1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #25903 -- Fixed the admin's list_editable add/change buttons.

This commit is contained in:
Tim Graham
2015-12-21 08:36:41 -05:00
parent d7580e286a
commit f18b08748a
5 changed files with 54 additions and 20 deletions

View File

@@ -87,8 +87,11 @@ class ChapterXtra1Admin(admin.ModelAdmin):
class ArticleAdmin(admin.ModelAdmin):
list_display = ('content', 'date', callable_year, 'model_year',
'modeladmin_year', 'model_year_reversed')
list_display = (
'content', 'date', callable_year, 'model_year', 'modeladmin_year',
'model_year_reversed', 'section',
)
list_editable = ('section',)
list_filter = ('date', 'section')
view_on_site = False
fieldsets = (