I want to make a query in python using the equivalent of LIKE in sql.
So for I've been using the __contains option like this :
results = objectName.objects.filter(variable__contains='someword')
But now I want to put a constraint on the variable like :
filter(variable__contains='_A%')
with "_" being any character and "%" all character it wants - like in SQL - but it doesn't work :(
Does someone know how to do this ?