How to use django filter_fields with ArrayField in DRF
Well I figured it out, lol. Needed to create a custom filter with lookup_exp='icontains'.
class CategoryFilter(filters.FilterSet):
category = filters.CharFilter(lookup_expr='icontains')
class Meta:
model = Items
fields = ('item', 'category')
class CategoryViewSet(viewsets.ModelViewSet):
queryset = Items.objects.all()
serializer_class = CategorySerializer
filterset_class = CategoryFilter