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"
>
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
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
>
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 escape the single quote? Is there also a way
to output
4 matches
Mail list logo