Re: Does the objects.get method automatically escape single quote?

2009-05-13 Thread Karen Tracey
On Wed, May 13, 2009 at 5:53 AM, Daniel Roseman < roseman.dan...@googlemail.com> wrote: > > On May 13, 2:25 am, Thierry wrote: > > My table has the following entry: > > > > id name > > 1 foo's > > > > I'm currently trying the following: > > > > value = "foo's" > > > > MyModel.objects.g

Re: Does the objects.get method automatically escape single quote?

2009-05-13 Thread Thierry
Thanks for the tip on the raw sql, I'll read the faq in more details. On May 13, 5:53 am, Daniel Roseman wrote: > On May 13, 2:25 am, Thierry wrote: > > > My table has the following entry: > > > id      name > > 1       foo's > > > I'm currently trying the following: > > > value = "foo's" > > >

Re: Does the objects.get method automatically escape single quote?

2009-05-13 Thread Daniel Roseman
On May 13, 2:25 am, Thierry wrote: > My table has the following entry: > > id      name > 1       foo's > > I'm currently trying the following: > > value = "foo's" > > MyModel.objects.get(name = value) > > The above is raising the exception DoesNotExist.  Doesn't the get > function automatically