from django_filters import rest_framework as filters
from apps.opm.models import Operation


class OperationFilterset(filters.FilterSet):
    class Meta:
        model = Operation
        fields = {
            'state': ['exact', 'in'],
            'area': ['exact'],
            'create_by': ['exact'],
            'create_time': ['gte', 'lte'],
            'cates': ['exact']
        }
