aboutsummaryrefslogtreecommitdiffstats
path: root/brevisurl/backends/local.py
diff options
context:
space:
mode:
authorVladg902014-04-16 13:28:32 +0300
committerVladg902014-04-16 13:28:32 +0300
commitf829effeb0bfa61cf4851d43a5cfd73a43df1d10 (patch)
tree4e1c649ebc909f6b2cfacbe79d7374e098aeb202 /brevisurl/backends/local.py
parente34b79db4a3a82e7236a02b13f2caf18275222b8 (diff)
downloaddjango-brevisurl-f829effeb0bfa61cf4851d43a5cfd73a43df1d10.tar.bz2
Add missing argument to savepoint_commit
Diffstat (limited to 'brevisurl/backends/local.py')
-rw-r--r--brevisurl/backends/local.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/brevisurl/backends/local.py b/brevisurl/backends/local.py
index 34d2d83..a00b0fe 100644
--- a/brevisurl/backends/local.py
+++ b/brevisurl/backends/local.py
@@ -65,7 +65,7 @@ class BrevisUrlBackend(BaseBrevisUrlBackend):
original_url=original_url,
shortened_url=shortened_url)
log.info('Url "%s" shortened to "%s"', original_url, shortened_url)
- transaction.savepoint_commit()
+ transaction.savepoint_commit(sid)
return short_url
except (IntegrityError, ValidationError) as e:
transaction.savepoint_rollback(sid)