From: Ksenia M. <kse...@gm...> - 2004-12-29 23:59:49
|
> Is there anything people know of that should be resolved before 0.6.1? I am not sure if this is a bug or a feature or my misunderstanding, but RelatedJoin does not create constrains on the intermediate table (I am using PostgreSQL 7.4). And a very related problem: the many-to-many relations between objects are not deleted after destroying the objects. The following test does not remove row from intermediate table: class Person(SQLObject): name = StringCol() addresses = RelatedJoin('Address') class Address(SQLObject): street = StringCol() persons = RelatedJoin('Person') Person.dropTable(ifExists=True) Person.createTable() Address.dropTable(ifExists=True) Address.createTable() p = Person(name='John') a = Address(street='Some street') p.addAddress(a) p.destroySelf() a.destroySelf() ~ -- Ksenia |