Re: About raw sql query

2010-06-24 Thread Daniel Roseman
On Jun 24, 3:02 pm, Jakir71 wrote: > I will need  the largest id of  table infantregistration.I used raw() > method such as InfantRegistration.objects.raw('SELECT Max(id) FROM > infantregistration'). > > It returns the error :'Manager' object has no attribute 'raw'. > > what can i do now??? .raw(

Re: About raw sql query

2010-06-24 Thread Tran Cao Thai
but it is only a simple query, why don't you use the query api (aggregate function...) On Fri, Jun 25, 2010 at 12:22 AM, Tom Evans wrote: > On Thu, Jun 24, 2010 at 3:02 PM, Jakir71 wrote: > > I will need the largest id of table infantregistration.I used raw() > > method such as InfantRegistrat

Re: About raw sql query

2010-06-24 Thread Tom Evans
On Thu, Jun 24, 2010 at 3:02 PM, Jakir71 wrote: > I will need  the largest id of  table infantregistration.I used raw() > method such as InfantRegistration.objects.raw('SELECT Max(id) FROM > infantregistration'). > > It returns the error :'Manager' object has no attribute 'raw'. > > what can i do

About raw sql query

2010-06-24 Thread Jakir71
I will need the largest id of table infantregistration.I used raw() method such as InfantRegistration.objects.raw('SELECT Max(id) FROM infantregistration'). It returns the error :'Manager' object has no attribute 'raw'. what can i do now??? -- You received this message because you are subscri