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
I have two table say, infantregistration(infant_name,
infant_mother_name, address) and vaccineschedule(infant_name,
vaccinea_dose, vaccine_dose_id, due_date). There in no foreign key and
infant_name is primary key. I will need the fields infant_name,
infant_mother_name, address from infantregistrat
2 matches
Mail list logo