Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认情况下,当使用 ModelForm 在 django 中创建表单时,每个字段的标签基本上是每个字段的名称,首字母大写。但是,我想为每个字段编写自己的标签,而不是使用默认标签。有没有捷径可以做到这一点?
是的,将verbose_name添加到字段定义中。