If you're getting DetachedInstanceErrors with database models, then you should disable 'expire_on_commit': ``` python DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension(), expire_on_commit=False)) ```