From: Ian B. <ia...@co...> - 2005-11-27 05:56:09
|
Randall Smith wrote: > Ian Bicking wrote: > >> I committed a few changes and fixes, and now you can do this: >> >> class ComplexGroup(SQLObject): >> complexes = OneToMany('Complex') >> def _get_unit_models(self): >> q = self.complexes.clause & Complex.unit_models.clause >> return UnitModel.select(q) >> >> The test/full example is in sqlobject/tests/test_combining_joins.py >> > I got an attribute error for clause and I'm using revision 1324. I added something just before committing without testing it; it should be fixed now in r1325 -- Ian Bicking | ia...@co... | http://blog.ianbicking.org |