title: How to use widgets in django-filter fields?
body: <p>Wanted to set widgets
  <code>&quot;class&quot;:&quot;form-control&quot;</code>
  to django-filter fields.</p>
  <p><strong>filters.py</strong></p>
  <pre><code>from django_filters import FilterSet,DateFilter,CharFilter,DateFromToRangeFilter
  from django_filters.widgets import RangeWidget,CSVWidget,DateRangeWidget
  from django import forms
  from .models import Blog
  
  class BlogFilter(FilterSet):
      start_date = DateFilter(field_name=&quot;created_at&quot;,lookup_expr='gte',label='From date',
          widget=DateFromToRangeFilter(attrs={
              'placeholder':'YYYY/MM/DD',
              'class':'form-control'
              })
      )
      end_date = DateFilter(field_name=&quot;created_at&quot;,lookup_expr='lte',label='To date')
  
      blog_name = CharFilter(field_name=&quot;blog_name&quot;,lookup_expr='icontains',label='Blog Name',
          widget=TextWidgets(attrs={
              'class':'form-control'
          })
      )
      class Meta:
          model = Blog
          fields = ('category','status','user')
  </code></pre>
  <p>tried to write widget in meta class also but didn't work.</p>
  <ol>
  <li><p>Which widget to be used for <code>CharFilter</code>? (like we use <code>forms.TextInput(attrs={'class':'form-control'}</code> in django forms)</p>
  </li>
  <li><p>Which widget to be used for <code>DateFilter</code>?</p>
  </li>
  </ol>