summaryrefslogtreecommitdiff
path: root/packages/views
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-11-28 20:00:27 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-11-28 20:00:27 -0500
commit66e4f518ffef04779ed95012fde212270845e068 (patch)
tree3a55ad60b3453eecca862c54e2824fddf1820ce8 /packages/views
parent03a028eb037b579a421be4f7d15c5ff02072ff46 (diff)
parentdbb508b7222081b523ce3e0bd2b69f5fea6c7050 (diff)
Merge branch 'master-nomake'
Diffstat (limited to 'packages/views')
-rw-r--r--packages/views/flag.py2
-rw-r--r--packages/views/signoff.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/views/flag.py b/packages/views/flag.py
index ae6b03f9..c6936ac4 100644
--- a/packages/views/flag.py
+++ b/packages/views/flag.py
@@ -86,7 +86,7 @@ def flag(request, name, repo, arch):
else:
email = form.cleaned_data['email']
- @transaction.commit_on_success
+ @transaction.atomic
def perform_updates():
current_time = now()
pkgs.update(flag_date=current_time)
diff --git a/packages/views/signoff.py b/packages/views/signoff.py
index c37aa0fc..fcc6de45 100644
--- a/packages/views/signoff.py
+++ b/packages/views/signoff.py
@@ -81,7 +81,7 @@ class SignoffOptionsForm(forms.ModelForm):
def _signoff_options_all(request, name, repo):
seen_ids = set()
- with transaction.commit_on_success():
+ with transaction.atomic():
# find or create a specification for all architectures, then
# graft the form data onto them
packages = Package.objects.filter(pkgbase=name,