As django admin does search_fields are available, and you can filter using doble underscore (__) to search across objects.
split_space_search split search text in parts using the string provided, this can be usefull to have better results but have impact in search performance, if split_space_search is True then ' ' is used
class Myclass(CRUDView):
model = Customer
search_fields = ['description__icontains']
split_space_search = ' ' # default False
NOTE: icontains is not set by default as django admin does, so you need to set if not equal search is wanted
As django admin does search_fields are available, and you can filter using doble underscore (__) to search across objects.
split_space_search split search text in parts using the string provided, this can be usefull to have better results but have impact in search performance, if split_space_search is True then ' ' is used
NOTE: icontains is not set by default as django admin does, so you need to set if not equal search is wanted