From 7db2e1ba10c9ce7cb89016d006046f7ca90464aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Thu, 3 Mar 2016 21:53:28 +0100 Subject: [PATCH] Follow PEP-0249 for Transaction and backends issue4949 review19781002 --- party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/party.py b/party.py index ae1f84c743..c27eebf40d 100644 --- a/party.py +++ b/party.py @@ -74,7 +74,7 @@ class Party: for model in self._credit_limit_to_lock(): Model = pool.get(model) - Transaction().cursor.lock(Model._table) + Transaction().database.lock(Transaction().connection, Model._table) if self.credit_limit_amount < self.credit_amount + amount: if not in_group(): self.raise_user_error('credit_limit_amount',