from django_filters import rest_framework as filters

from LiveStock.models import Rancher


class RancherFilterSet(filters.FilterSet):
    class Meta:
        model = Rancher
        fields = [
            'fullname',
            'herd_code',
            'mobile',
            'city',
            'national_id',
            'herd_code',
            'user__mobile',
            'user__first_name',
            'user__last_name',
            'user__fullname',
            'registering_user',
            'unit_id',
            'epidemiological_code',
            'postal_code',

        ]
