Re: 'LIKE' statement in Model.objects.raw() using percentage '%'

2013-07-17 Thread Jorge Cardoso Leitão
This is a mailing list for developing of django itself. For usage of django please use the django-user mailing list. Jorge On Jul 17, 2013, at 4:21 PM, spondbob squelpen wrote: > I have problem in django using query statement "LIKE %s%" with > Model.objects.raw(). I guess the problem is on '%'

'LIKE' statement in Model.objects.raw() using percentage '%'

2013-07-17 Thread spondbob squelpen
I have problem in django using query statement "LIKE %s%" with Model.objects.raw(). I guess the problem is on '%' character but i don't know where is it. Here's my model's code: def listInRange(self, placeLat, placeLng, typeId, range, placeTag): tags = '' if placeTag: