I've been using simple DAL, and django-filter separately but I'm having trouble using DAL with django-filter.
I've read this page : django-filter with django autocomplete light
but I'm still confused. I have filter class like this below, and I want to use DAL on the "devname" field:
class DevListFil(django_filters.FilterSet):
devname = django_filters.CharFilter(name='devname',lookup_expr='icontains')
sn = django_filters.CharFilter(name='sn',lookup_expr='icontains')
devtype = django_filters.CharFilter(name='devtype',lookup_expr='icontains')
class Meta:
model = Device
fields = ['devname','sn','devtype']
any help or point-to-right-direction please.