我有一个django表单,我需要增加标签的字体大小。基于,我需要做的是添加一个CSS类并将它应用到控件标签中。我该怎么做呢?
我的表单是这样填充的:
class MyForm(forms.Form):
def __init__(self, *args, **kwargs):
super(MyForm, self).__init__(*args, **kwargs)
fields_to_add = {
# many fields here, but all in this format. Removed for brevity.