from django_filters import rest_framework as filters
from app.entities.models import ChangeRequestFormHeader


class HeaderFilterSet(filters.FilterSet):

    # action_required = filters.CharFilter(method='action_required_bar')
    
    class Meta:
        model = ChangeRequestFormHeader
        fields = '__all__'

    # def action_required_bar(self, queryset, name, value):
    #     return queryset.filter(
    #         Q(title__icontains=value) |
    #         Q(name__icontains=value) |
    #         Q(description__icontains=value)
    #     )
