from django_filters import rest_framework as filters

from LiveStock.models import Cooperative


class CooperativeFilterSet(filters.FilterSet):
    class Meta:
        model = Cooperative
        fields = [
            'address__city__name',
            'name',
            'mobile',
            'user__mobile',
            'user__first_name',
            'user__last_name',
            'user__fullname'
        ]
