On Sunday 22 March 2009 03:59:10 pm Joshua Partogi wrote:
> On Mar 23, 6:56 am, Mike Ramirez <gufym...@gmail.com> wrote:
> > I think what you want to do with this style is:
> >
> >         obj.user = User.objects.get(username=request.user.username)
> >
> > > or maybe just
> > >
> > > obj.user = request.user
>
> Hi Mike. Thank you very much.
> This syntax works with psycopg2. I wonder why the previous ones that I
> posted works with MySQL.
>

I really can't say.  Maybe one of the contributors can enlighten us on this. 

But as a general rule of thumb, I try to be exact (even to the point of adding 
__exact) in these situations, just so I don't have to worry. 

> Thank you very much anyhow. Really appreciate it.
>

you're welcome.

Mike



-- 
Politics is the ability to foretell what is going to happen tomorrow, next
week, next month and next year.  And to have the ability afterwards to
explain why it didn't happen.
                -- Winston Churchill

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to