mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed #25903 -- Fixed the admin's list_editable add/change buttons.
This commit is contained in:
parent
d7580e286a
commit
f18b08748a
5 changed files with 54 additions and 20 deletions
|
|
@ -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 = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue