Configure isolation_level from transaction_mode

TypeError: 'transaction_mode' is an invalid keyword argument for Connection()
This commit is contained in:
tcely authored and GitHub committed 2024-12-11 15:48:11 -05:00
1 parent 0ab0605d22
commit 467ec947ff
1 file changed
+5
+5
View File
@@ -26,3 +26,8 @@ class DatabaseWrapper(base.DatabaseWrapper):
cursor.execute(init_cmd.strip())
def get_new_connection(self, conn_params):
conn_params["isolation_level"] = conn_params.pop("transaction_mode", "DEFERRED")
super().get_new_connection(conn_params)