Re: [SQLObject] [newbie] problem with MultipleJoin
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <pa...@su...> - 2004-09-18 19:33:39
|
paul k=F6lle wrote: just for the record: > class CaCert(CertItem): > SignedCaCerts =3D MultipleJoin('SubCaCert') > ... >=20 > class SubCaCert(CertItem): > Ca =3D ForeignKey('CaCert') > ... That's apparently wrong. In order to work such the name of the column=20 *has* to be the same as the referenced object (case insensitive?). While=20 the documentation gives a perfectly valid example ( person =3D=20 ForeignKey('Person')) it was not clear to me that those strings have to=20 be equal. The documentation notes the correspondence of the 'Person'=20 string with another class in the db nothing more. Maybe it's just me=20 knowing almost nothing about db/sql/whatever ... ;) :P |