> It is apparently attempting to
> guess what the primary key is based on the Style, even though I specified
> the column name by hand. This is just a bit beyond my ability to fix at the
> moment.
Yes, it tries to guess based on style in this case. SQLObjects are still fairly
self-contained, the CustAccount class does not search out the appropriate
ForeignKey in ShipTo automatically to determine the name.
You will want to change your join to specify the column name:
shiptos = MultipleJoin('Shipto', joinColumnName='cust_id')
And that should take care of it.
- Luke
|