【发布时间】:2013-03-29 16:03:26
【问题描述】:
在更改 Django 中的默认 admin.modelAdmin 类时,似乎没有对 Django 的自动完成支持。我的意思如下所示:
fieldsets = [
('Story', {
'fields': ('title', 'url', 'points'),
}),
('Moderator', {
# Un-Comment the line below to make set collapsible
'classes': (),
'fields': ('moderator',),
}),
('Change History', {
# Un-Comment the line below to make set collapsible
'classes': ('collapse',),
'fields': ('created_at', 'updated_at'),
}),
]
问题是什么都没有弹出,当您尝试配置 'classes': ('...',), 之类的东西时,有没有办法添加自动完成或我现在缺少的任何功能?
【问题讨论】: