This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
session_engines = {} | |
def get_new_session(connection=None, autocommit=None): | |
connection = connection or 'default' | |
connection_settings = settings.DATABASES[connection] | |
connection_autocommit = ValueUtils.none_or( | |
connection_settings.get('autocommit'), False) | |
autocommit = ValueUtils.none_or(autocommit, connection_autocommit) |