Answer the question
In order to leave comments, you need to log in
How to do a like search from a django base?
The search bar, I enter a part of the name of the product, should give out this product, now it is implemented like this:
question = request.GET.get('q')
products_images = ProductImage.objects.filter(is_active=True, is_main=True, product__is_active=True, product__product_name = question)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question