diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-06-29 18:34:41 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-06-29 18:49:37 +0200 |
| commit | acd7b34aafe352ef604edcb73f75041c5cbba6b9 (patch) | |
| tree | eecb1df66a2070e9a357380fba89febd38c488f4 /django/db/transaction.py | |
| parent | 8b9b8d3bda09eb1b447631182d06c6c5e51425f6 (diff) | |
Advanced deprecation warnings for Django 1.7.
Diffstat (limited to 'django/db/transaction.py')
| -rw-r--r-- | django/db/transaction.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/django/db/transaction.py b/django/db/transaction.py index 95b9ae165e..6031ce96c8 100644 --- a/django/db/transaction.py +++ b/django/db/transaction.py @@ -101,19 +101,19 @@ def set_clean(using=None): def is_managed(using=None): warnings.warn("'is_managed' is deprecated.", - PendingDeprecationWarning, stacklevel=2) + DeprecationWarning, stacklevel=2) def managed(flag=True, using=None): warnings.warn("'managed' no longer serves a purpose.", - PendingDeprecationWarning, stacklevel=2) + DeprecationWarning, stacklevel=2) def commit_unless_managed(using=None): warnings.warn("'commit_unless_managed' is now a no-op.", - PendingDeprecationWarning, stacklevel=2) + DeprecationWarning, stacklevel=2) def rollback_unless_managed(using=None): warnings.warn("'rollback_unless_managed' is now a no-op.", - PendingDeprecationWarning, stacklevel=2) + DeprecationWarning, stacklevel=2) ############### # Public APIs # @@ -430,7 +430,7 @@ def autocommit(using=None): your settings file and want the default behavior in some view functions. """ warnings.warn("autocommit is deprecated in favor of set_autocommit.", - PendingDeprecationWarning, stacklevel=2) + DeprecationWarning, stacklevel=2) def entering(using): enter_transaction_management(managed=False, using=using) @@ -448,7 +448,7 @@ def commit_on_success(using=None): control in Web apps. """ warnings.warn("commit_on_success is deprecated in favor of atomic.", - PendingDeprecationWarning, stacklevel=2) + DeprecationWarning, stacklevel=2) def entering(using): enter_transaction_management(using=using) @@ -478,7 +478,7 @@ def commit_manually(using=None): themselves. """ warnings.warn("commit_manually is deprecated in favor of set_autocommit.", - PendingDeprecationWarning, stacklevel=2) + DeprecationWarning, stacklevel=2) def entering(using): enter_transaction_management(using=using) |
