我使用admin.tabularinline在django管理中定制了add用户表单。因此,每当管理员添加用户时,都会同时保存有关User模型和UserProfile模型的信息。然而,UserProfile表单的标签标签上写着“人员配置文件”(带有“s”)。而且它看起来不太好,因为只有一个用户的配置文件。如何将“员工档案”改为“员工档案”有什么想法吗?见图片以供参考:

发布于 2019-08-23 05:37:35
按照文档中的指定,在UserProfileInline中更改您的verbose_name_plural
在管理声明中,添加
class UserProfileInline(admin.YourInlineChoice):
verbose_name_plural="Staff Profile"
[Your params]https://stackoverflow.com/questions/57619813
复制相似问题