okfn/ckan — pull request #66 by icmurray (2012-07-13 13:18:37+00:00)
Title: [#2672] Pass in passive=True to Session.is_modified()

@kindly Can I run this past you please?

Spotted that we're not calling Session.is_modified() properly [1]. This fixes a problem I've had with running tests against code that creates a one-one back reference from a new table to the User table, where the new table is being created in a ckan extension (ie outside of the usual migration scripts).

[1] http://docs.sqlalchemy.org/en/rel_0_7/orm/session.html?highlight=is_modified#sqlalchemy.orm.session.Session.is_modified