How to search single key over multiple columns in Django
How to search for single keyword over multiple columns in Django. Seach a list values in Multipal columns.
#search query
from django.db.models import Q
def search(request):
value = request.GET.get('search_text') queryset = Product.objects.filter(Q(title__icontains=value) | Q(description__icontains=value))
We belive you like this pealse comment if any issues
Comments
Post a Comment