#from django.db.models import Q
from django.shortcuts import render
from products.models import Product

# Create your views here.
def search_product_view(request):
	method_dict = request.GET
	query = method_dict.get('q','Loren')
	#lookups = Q(title__icontains=query) | Q(description__icontains=query)
	queryset = Product.objects.search(query)
	context = {
		'object_list':queryset
	}
	template = 'search/view.html'
	return render(request,template,context)
97abcc8ed3fc9b3de987ce53d48c4f43d1201c4c
<mask token>

<mask token>


def search_product_view(request):
    method_dict = request.GET
    query = method_dict.get('q', 'Loren')
    queryset = Product.objects.search(query)
    context = {'object_list': queryset}
    template = 'search/view.html'
    return render(request, template, context)

from django.shortcuts import render
from products.models import Product


def search_product_view(request):
    method_dict = request.GET
    query = method_dict.get('q', 'Loren')
    queryset = Product.objects.search(query)
    context = {'object_list': queryset}
    template = 'search/view.html'
    return render(request, template, context)

#from django.db.models import Q
from django.shortcuts import render
from products.models import Product

# Create your views here.
def search_product_view(request):
	method_dict = request.GET
	query = method_dict.get('q','Loren')
	#lookups = Q(title__icontains=query) | Q(description__icontains=query)
	queryset = Product.objects.search(query)
	context = {
		'object_list':queryset
	}
	template = 'search/view.html'
	return render(request,template,context)