mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed typos in Atomic docstring.
This commit is contained in:
parent
9cb8baa0c4
commit
ee20e2d038
@ -156,7 +156,7 @@ class Atomic(ContextDecorator):
|
||||
It's possible to disable the creation of savepoints if the goal is to
|
||||
ensure that some code runs within a transaction without creating overhead.
|
||||
|
||||
A stack of savepoints identifiers is maintained as an attribute of the
|
||||
A stack of savepoint identifiers is maintained as an attribute of the
|
||||
connection. None denotes the absence of a savepoint.
|
||||
|
||||
This allows reentrancy even if the same AtomicWrapper is reused. For
|
||||
@ -165,10 +165,10 @@ class Atomic(ContextDecorator):
|
||||
|
||||
Since database connections are thread-local, this is thread-safe.
|
||||
|
||||
An atomic block can be tagged as durable. In this case, raise a
|
||||
RuntimeError if it's nested within another atomic block. This guarantees
|
||||
An atomic block can be tagged as durable. In this case, a RuntimeError is
|
||||
raised if it's nested within another atomic block. This guarantees
|
||||
that database changes in a durable block are committed to the database when
|
||||
the block exists without error.
|
||||
the block exits without error.
|
||||
|
||||
This is a private API.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user