title: django-filter button in template
body: <p>I'm using the django-filter package. My page displays all books. I have 5 genres. I want someone to be able to click a "scary" button, and have that filter my book list (user shouldn't have to also click "submit", just the genre button). </p>
  
  <p>But right now when I click a genre button, it doesn't filter. Unless I use a checkbox widget in my filters.py (commented out), check the box, and then click the genre button, but this looks ugly.</p>
  
  <p>Thanks in advance for the help!</p>
  
  <p><strong>Filters.py</strong></p>
  
  <pre><code>class BookFilter(django_filters.FilterSet):
      genre = django_filters.ModelMultipleChoiceFilter(queryset=Genre.objects.all(),
  #widget=CheckboxSelectMultiple)
      class Meta:
          model = Book
          fields = ['genre']
  </code></pre>
  
  <p><strong>book_list.html</strong></p>
  
  <pre><code>&lt;form method="get"&gt;
    &lt;ul&gt;
      {% for genre in filter.form.genre %}
      &lt;li&gt;
        &lt;button type="submit" class="button"&gt;
          {{ genre }}
        &lt;/button&gt;
      &lt;/li&gt;
      {% endfor %}
    &lt;/ul&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Update</strong>
  Thanks to GwynBleidD for the help! I also had to change {% for genre in filter.form.genre %} to {% for genre in genre_list %} where in my views, genre_list=Genre.objects.all(). Otherwise, the button value was value=option value=10 instead of value=10.</p>