from django_filters import rest_framework as filters
from apps.inm.models import MaterialBatch


class MaterialBatchFilter(filters.FilterSet):

    class Meta:
        model = MaterialBatch
        fields = {
            "warehouse": ["exact"],
            "material": ["exact"],
            "material__type": ["exact", "in"],
            "material__process": ["exact", "in"],
            "count": ["exact", "gte", "lte"]
        }
