From fd983bcb50a4fd610f6b9918bca6efa858eeffec Mon Sep 17 00:00:00 2001 From: Huang Zhiqiang Date: Wed, 19 Apr 2017 20:47:46 +0800 Subject: [PATCH] [1.11.x] Fix a typo in django/db/transaction.py Backport of cd7afcdcac69cc4e6f762188262957bceb4760e0 from master --- django/db/transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/transaction.py b/django/db/transaction.py index e392c13b32..412513b475 100644 --- a/django/db/transaction.py +++ b/django/db/transaction.py @@ -136,7 +136,7 @@ class Atomic(ContextDecorator): connection. None denotes the absence of a savepoint. This allows reentrancy even if the same AtomicWrapper is reused. For - example, it's possible to define `oa = @atomic('other')` and use `@oa` or + example, it's possible to define `oa = atomic('other')` and use `@oa` or `with oa:` multiple times. Since database connections are thread-local, this is thread-safe.