xxxxxxxxxx
>>> Entry.objects.filter(body_text__search='cheese')
[<Entry: Cheese on Toast recipes>, <Entry: Pizza recipes>]
xxxxxxxxxx
from django.db.models import Q
results = BlogPost.objects.filter(Q(title__icontains=your_search_query) | Q(intro__icontains=your_search_query) | Q(content__icontains=your_search_query))
xxxxxxxxxx
>>> from django.contrib.postgres.search import SearchVector
>>> Entry.objects.annotate(
search=SearchVector('body_text', 'blog__tagline'),
filter(search='Cheese') ).
[<Entry: Cheese on Toast recipes>, <Entry: Pizza Recipes>]