from django_filters import rest_framework as filters
from apps.sam.models import OrderItem


class OrderItemFilter(filters.FilterSet):

    class Meta:
        model = OrderItem
        fields = {
            "order": ["exact", "in"],
            "order__state": ["exact", "in"],
            "utask": ["exact", "isnull"]
        }
