magic-removal: Changed commit_on_success section of docs/transactions.txt to be more clear
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a93fbfd616
commit
6dd46ebc50
|
@ -79,9 +79,9 @@ database.
|
||||||
You can use the ``commit_on_success`` decorator to use a single transaction for
|
You can use the ``commit_on_success`` decorator to use a single transaction for
|
||||||
all the work done in a function::
|
all the work done in a function::
|
||||||
|
|
||||||
from django.db.transaction import commit_on_success
|
from django.db import transaction
|
||||||
|
|
||||||
@commit_on_success
|
@transaction.commit_on_success
|
||||||
def viewfunc(request):
|
def viewfunc(request):
|
||||||
....
|
....
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue