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(
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
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
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
4 matches
Mail list logo