import django_filters
from django_filters import CharFilter
from django.forms.widgets import TextInput
from .models import *


class ItemFilter(django_filters.FilterSet):
    category = CharFilter(field_name='category', lookup_expr='icontains',
        widget=TextInput(attrs={'placeholder': 'Search Category', 'class':
        'inputx'}))


    class Meta:
        model = Item
        fields = ['title', 'category', 'label']

69aa619333f9acfe3dcf669258ddd1601ab93fbe
<mask token>

<mask token>


class ItemFilter(django_filters.FilterSet):
    <mask token>


    class Meta:
        model = Item
        fields = ['title', 'category', 'label']

<mask token>


class ItemFilter(django_filters.FilterSet):
    category = CharFilter(field_name='category', lookup_expr='icontains',
        widget=TextInput(attrs={'placeholder': 'Search Category', 'class':
        'inputx'}))


    class Meta:
        model = Item
        fields = ['title', 'category', 'label']

import django_filters
from django_filters import CharFilter
from django.forms.widgets import TextInput
from .models import *


class ItemFilter(django_filters.FilterSet):
    category = CharFilter(field_name='category', lookup_expr='icontains',
        widget=TextInput(attrs={'placeholder': 'Search Category', 'class':
        'inputx'}))


    class Meta:
        model = Item
        fields = ['title', 'category', 'label']
