0
Filtertion in database with django
I have a product in database whose name is - TUBE-LIGHT23. now how do i get this object by name = TUBELIG3.
1 ответ
0
If I got your question right, you are probably looking for something like __contains :
product = Product.objects.filter(name__contains='TUBELIG3')
Hope that's helpful!