1
我为我的Django管理站点使用Grappelli-Dashboard。我想定制应用程序标题的显示,以便不显示应用程序的名称。那可能吗?如果是这样,怎么样?我无法弄清楚......? 考虑下面的代码,我不希望显示两个应用程序的名称(即我不想给管理员显示“事物”的标题和“项目头)是否有可能在Grappelli-Dashboard module.AppList中显示应用程序名称?
self.children.append(modules.Group(
_('MyStuff'),
column=3,
collapsible=True,
children = [
modules.AppList(
_('Stuff Details'),
column=1,
collapsible=True,
models=('things.models',),
),
modules.AppList(
_('Stuff Data'),
column=1,
collapsible=True,
models=('items.models.*',),
),
]
))