class ArticleFilter(django_filters.FilterSet):
tags = django_filters.filters.ModelMultipleChoiceFilter(
queryset=Tag.objects.all(), widget=widgets.CheckboxSelectMultiple())
class Meta:
model = Article
<p><label>Tags:</label> <ul id="id_tags">
<li><label for="id_tags_0"><input type="checkbox" name="tags" value="1" id="id_tags_0">
Tag object (1)</label>
</li>
<li><label for="id_tags_1"><input type="checkbox" name="tags" value="2" id="id_tags_1">
Tag object (2)</label>
</li>
</ul></p>