Re: [sqlalchemy] can't get delete-orphan work

2011-11-12 Thread Michael Bayer
On Nov 12, 2011, at 2:36 AM, sector119 wrote: > Hi. > > I think that I'm doing somethig wrong, but I can't get delete-orphah work... > No DELETES on static_page_urls are performed... > > session = Session() > user = session.query(StaticPage).filter_by(id=1).delete() delete and delete-orphan c

[sqlalchemy] can't get delete-orphan work

2011-11-12 Thread sector119
Hi. I think that I'm doing somethig wrong, but I can't get delete-orphah work... No DELETES on static_page_urls are performed... 2011-11-12 12:31:14 EET LOG: statement: BEGIN 2011-11-12 12:31:14 EET LOG: statement: DELETE FROM static_pages WHERE static_pages.id = 1 2011-11-12 12:31:14 EET ERR