I am using the filter icontains to search for words but I only want it to match whole words. e.g. if I searched for liver I wouldn\'t want it returning delivery.
my
In case you have angularjs and REST service implemented with tastypie or DRF, you can filter by whole words as $http.get(uri, {'params': {'display_name__iregex': '[[:<:]]word[[:>:]]'})
of course, display_name
should be enabled to filtering in Tastypie resource's Meta class as filtering = {'display_name': ALL,}