from django_filters import rest_framework as filters

from LiveStock.models import Union


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