Re: Any way to NOT escape a percent sign using 'contains'?

2009-01-30 Thread Adam Stein
Thanks for the advice. I was kinda thinking I would have to use regex. I hadn't thought of puting the replace() in a custom cleaning method, but I agree that sounds like a good place to put it. On Fri, 2009-01-30 at 13:59 +1100, Malcolm Tredinnick wrote: > On Thu, 2009-01-29 at 18:47 +,

Re: Any way to NOT escape a percent sign using 'contains'?

2009-01-29 Thread Malcolm Tredinnick
On Thu, 2009-01-29 at 18:47 +, Adam Stein wrote: > According to the docs, when using 'contains' in filter() a percent sign > or underscore is automatically escaped. However, in my case I want the > resulting SQL to use the percent sign. > > I know 'contains' will fill in the outside percent

Any way to NOT escape a percent sign using 'contains'?

2009-01-29 Thread Adam Stein
According to the docs, when using 'contains' in filter() a percent sign or underscore is automatically escaped. However, in my case I want the resulting SQL to use the percent sign. I know 'contains' will fill in the outside percent signs, but it escapes the percent sign in my string. So that