Re: django ORM not compatible with postgres

2009-03-22 Thread Mike Ramirez
On Sunday 22 March 2009 03:59:10 pm Joshua Partogi wrote: > On Mar 23, 6:56 am, Mike Ramirez 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 Mik

Re: django ORM not compatible with postgres

2009-03-22 Thread Mike Ramirez
On Sunday 22 March 2009 03:33:41 pm Brian Neal wrote: > On Mar 22, 2:56 pm, Mike Ramirez wrote: > > On Sunday 22 March 2009 09:25:42 am Brian Neal wrote: > > > But from what you posted, I'm guessing that line needs to read: > > > > > > obj.user = User.objects.get(username=request.user) > > > > I t

Re: django ORM not compatible with postgres

2009-03-22 Thread Joshua Partogi
On Mar 23, 6:56 am, Mike Ramirez 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 pr

Re: django ORM not compatible with postgres

2009-03-22 Thread Brian Neal
On Mar 22, 2:56 pm, Mike Ramirez wrote: > On Sunday 22 March 2009 09:25:42 am Brian Neal wrote: > > > > But from what you posted, I'm guessing that line needs to read: > > > obj.user = User.objects.get(username=request.user) > > I think what you want to do with this style is: > >         obj.user

Re: django ORM not compatible with postgres

2009-03-22 Thread Mike Ramirez
On Sunday 22 March 2009 09:25:42 am Brian Neal wrote: > On Mar 22, 8:15 am, Joshua Partogi wrote: > > Dear all, > > > > I just encounter this error using pyscopg2 as my db adapter > > Exception Type:         ProgrammingError > > Exception Value:        can't adapt > > Exception Location: > >      

Re: django ORM not compatible with postgres

2009-03-22 Thread Brian Neal
On Mar 22, 8:15 am, Joshua Partogi wrote: > Dear all, > > I just encounter this error using pyscopg2 as my db adapter > Exception Type:         ProgrammingError > Exception Value:        can't adapt > Exception Location: >         /usr/lib/python2.5/site-packages/django/db/backends/util.py in > e

django ORM not compatible with postgres

2009-03-22 Thread Joshua Partogi
Dear all, I just encounter this error using pyscopg2 as my db adapter Exception Type: ProgrammingError Exception Value:can't adapt Exception Location: /usr/lib/python2.5/site-packages/django/db/backends/util.py in execute, line 19 The query that I'm trying to run from ad