So, basically I have a FilterSet I am using with django-tables2. Now I need to use have a single char field which should search two separate fields from the Model.
For example:
ip_addr = django_filters.CharFilter(lookup_expr='icontains')
virtual_ip = django_filters.CharFilter(lookup_expr='icontains')
Above is my current FilterSet. Both these are rendered into two separate fields in the Template. But I want to combine them into a single field in the front end, which looks up either in ip_addr OR in virtual_ip.
Can any one point me in right direction.