title: How to filter by Date fields in Django-filter package?
body: <p>My model</p>
  <pre class="lang-py prettyprint-override"><code>class Metric(models.Model):
  
      date = models.DateField()
      channel = models.CharField(max_length=50)
      country = models.CharField(max_length=10)
      os = models.CharField(max_length=10)
  </code></pre>
  <p>I am using the <a href="https://django-filter.readthedocs.io/en/latest/guide/rest_framework.html" rel="nofollow noreferrer">django-filter</a> to filter the records. Can someone help how I can filter by time range (date_from+date_to is enough). Like in query parameter user will provide <code>/metrics?date-gte='2021-08-17'&amp;date-lte='2021-08-19'</code></p>
  <p>my view</p>
  <pre class="lang-py prettyprint-override"><code>class MetricViewSet(viewsets.ModelViewSet):
      serializer_class = MetricSerializer
      queryset = Metric.objects.all()
      filter_backends = [DjangoFilterBackend]
      filterset_fields = ['country', 'channel','os']
  </code></pre>