your_search_query = 'super very news' qset = Q() for term in your_search_query.split(): qset |= Q(name__contains=term) matching_results = YourModel.objects.filter(qset)
No comments:
Post a Comment