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:
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user