- sm = orm.sessionmaker(autoflush=True, autocommit=False, bind=engine)
- session = orm.scoped_session(sm)
+ all_session_args = dict(autoflush=True, autocommit=False, bind=engine)
+ all_session_args.update(session_args)
+ sm = orm.sessionmaker(class_=MultilangSession, **all_session_args)
+ session = MultilangScopedSession(sm)