更改 Django CMS 管理面板中的部分名称
是否可以更改 Django CMS 管理面板中的部分名称?我正在使用 cmsplugin_blog,它作为名为“Cmsplugin_Blog”的部分出现在管理面板中。我想将标题重命名为“新闻”,因为我正在使用此模块进行新闻发布。
我还可以将描述每个条目的“条目”一词更改为其他词吗?
Is it possible to change a section name in the Django CMS admin panel? I am using cmsplugin_blog which appears in the admin panel as a section named 'Cmsplugin_Blog'. I'd like to rename the title to 'News' since I'm using this module for news publishing.
Can I also change the the word 'Entry' that describes each individual entry for some other word?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种丑陋的方法是在
cmsplugin_blog.Entry._meta
上猴子修补verbose_name
和verbose_name_plural
。至于部分名称,我不知道该怎么做。An ugly way to do that would be to monkey patch
verbose_name
andverbose_name_plural
oncmsplugin_blog.Entry._meta
. As for the section name, I don't know how to do that.