magic-removal: Added a clarification to docs/transactions.txt (thanks, Malaprop)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2a65b00381
commit
3ecacdb5fa
|
@ -105,8 +105,11 @@ Manual transaction management looks like::
|
||||||
@transaction.commit_manually
|
@transaction.commit_manually
|
||||||
def viewfunc(request):
|
def viewfunc(request):
|
||||||
...
|
...
|
||||||
transaction.commit()
|
# You can commit/rollback however and whenever you want
|
||||||
|
transaction.commit()
|
||||||
...
|
...
|
||||||
|
|
||||||
|
# But you've got to remember to do it yourself!
|
||||||
try:
|
try:
|
||||||
...
|
...
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue