summaryrefslogtreecommitdiff
path: root/postgresqleu/adyen/util.py
diff options
context:
space:
mode:
authorMagnus Hagander2016-01-01 18:31:18 +0000
committerMagnus Hagander2016-01-07 14:19:56 +0000
commit905fdb48b99d2fbb6bb7519d1091026835f45c69 (patch)
tree9d304779720d9f4701202922db6c14ecaf9f15ee /postgresqleu/adyen/util.py
parentcae3b232bd384419878766deb3dfcb920a88c0d6 (diff)
Mechanical changes for new django version
Diffstat (limited to 'postgresqleu/adyen/util.py')
-rw-r--r--postgresqleu/adyen/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/adyen/util.py b/postgresqleu/adyen/util.py
index 6f68af20..5a70d964 100644
--- a/postgresqleu/adyen/util.py
+++ b/postgresqleu/adyen/util.py
@@ -248,7 +248,7 @@ def process_raw_adyen_notification(raw, POST):
# a transactional context, as it manages it's own.
# Now open a transaction for actually processing what we get
- with transaction.commit_on_success():
+ with transaction.atomic():
# Set it to confirmed - if we were unable to process the RAW one,
# this will be rolled back by the transaction, and that's the only
# thing that htis flag means. Anything else is handled by the