作者:施华洛卉子 | 来源:互联网 | 2023-09-03 19:26
HowcanImakealabelboldinaDjangoform?如何在Django表单中创建标签粗体?Theformelementgoeslikethis:
How can I make a label bold in a Django form?
如何在Django表单中创建标签粗体?
The form element goes like this:
表单元素如下所示:
cOndition= forms.TypedChoiceField(label="My Condition is",
coerce= int,
choices=Listed.CONDITION,
widget=RadioSelect(attrs={"class": "required"})
)
1 个解决方案