I have some buried-in-the-codebase-since-0.7 upsert code that uses `merge`.
In order to avoid certain attributes from being used in the merge
comparison, the attributes were deleted using delattr..
The code looks something like this:
db_obj = sess.query(obj_type).filter_by(**filters).one()
pk
On 4/5/15 12:32 AM, Russ wrote:
I have some buried-in-the-codebase-since-0.7 upsert code that uses
`merge`. In order to avoid certain attributes from being used in the
merge comparison, the attributes were deleted using delattr..
The code looks something like this:
db_obj =