1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Improved the API of set_autocommit.

This commit is contained in:
Aymeric Augustin
2013-03-11 15:10:58 +01:00
parent f32100939e
commit e654180ce2
8 changed files with 24 additions and 24 deletions

View File

@@ -124,7 +124,7 @@ def get_autocommit(using=None):
"""
return get_connection(using).autocommit
def set_autocommit(using=None, autocommit=True):
def set_autocommit(autocommit, using=None):
"""
Set the autocommit status of the connection.
"""