1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Deprecated transaction.is_managed().

It's synchronized with the autocommit flag.
This commit is contained in:
Aymeric Augustin
2013-03-04 15:24:01 +01:00
parent ba5138b1c0
commit 3bdc7a6a70
7 changed files with 23 additions and 30 deletions

View File

@@ -689,7 +689,7 @@ class TransactionMiddlewareTest(TransactionTestCase):
def test_request(self):
TransactionMiddleware().process_request(self.request)
self.assertTrue(transaction.is_managed())
self.assertFalse(transaction.get_autocommit())
def test_managed_response(self):
transaction.enter_transaction_management()