【发布时间】:2016-10-05 16:55:22
【问题描述】:
所以我在我的forms.py:
auto_current_type = forms.ModelMultipleChoiceField(label="Авто:", queryset=Auto_current_type.objects.all(),
widget=forms.CheckboxSelectMultiple())
我的模板:
<div class="row">
<form class="col s6 offset-s3 l6 offset-l3 m6 offset-m3" method="post">
{% form %}
{% endform %}
<button class="btn waves-effect waves-light" type="submit" name="action">Поиск
</button>
</form>
</div>
如您所见,有车型名称,在下方您可以看到与车型名称相同的复选框。但是复选框不起作用。有什么帮助吗?
【问题讨论】:
标签: python django forms django-forms materialize