import django_filters
from django.forms import DateInput

from rate.models import Rate


class RateFilter(django_filters.FilterSet):
    created = django_filters.DateFilter(
        field_name='created', lookup_expr='date',
        widget=DateInput(attrs={'type': 'date'}),
    )

    class Meta:
        model = Rate
        # fields = ['source', 'currency', 'sale']
        fields = {
            'source': ['exact'],
            'currency': ['exact'],
            'sale': ['exact'],
            'created': [],
        }

d834bfeba7c22a1b90c0104d08c9d1ad1537b40f
<mask token>

<mask token>


class RateFilter(django_filters.FilterSet):
    <mask token>


    class Meta:
        model = Rate
        fields = {'source': ['exact'], 'currency': ['exact'], 'sale': [
            'exact'], 'created': []}

<mask token>


class RateFilter(django_filters.FilterSet):
    created = django_filters.DateFilter(field_name='created', lookup_expr=
        'date', widget=DateInput(attrs={'type': 'date'}))


    class Meta:
        model = Rate
        fields = {'source': ['exact'], 'currency': ['exact'], 'sale': [
            'exact'], 'created': []}

import django_filters
from django.forms import DateInput
from rate.models import Rate


class RateFilter(django_filters.FilterSet):
    created = django_filters.DateFilter(field_name='created', lookup_expr=
        'date', widget=DateInput(attrs={'type': 'date'}))


    class Meta:
        model = Rate
        fields = {'source': ['exact'], 'currency': ['exact'], 'sale': [
            'exact'], 'created': []}

import django_filters
from django.forms import DateInput

from rate.models import Rate


class RateFilter(django_filters.FilterSet):
    created = django_filters.DateFilter(
        field_name='created', lookup_expr='date',
        widget=DateInput(attrs={'type': 'date'}),
    )

    class Meta:
        model = Rate
        # fields = ['source', 'currency', 'sale']
        fields = {
            'source': ['exact'],
            'currency': ['exact'],
            'sale': ['exact'],
            'created': [],
        }
