如何将自定义标签添加到我的表单集?
<form method="post" action="">
{{ formset.management_form }}
{% for form in formset %}
{% for field in form %}
{{ field.label_tag }}: {{ field }}
{% endfor %}
{% endfor %}
</form>
我的模型是:
class Sing(models.Model):
song = models.CharField(max_length = 50)
band = models.CharField(max_length = 50)
现在在模板而不是字段标签中'song'
,我如何设置它以使其显示为'What song are you going to sing?'
?