summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-11-07 04:17:27 +0100
committerDan McGee <dan@archlinux.org>2013-11-07 04:17:27 +0100
commitee6002c911952ddc8cfd07fded3de2c9b0193dc6 (patch)
tree09e1d0d8e1aba35289d62b95b47b318ebd8a1527 /packages
parent86f9d6788e22376560ca1a56e86c8f679b832907 (diff)
downloadarchweb-ee6002c911952ddc8cfd07fded3de2c9b0193dc6.tar.gz
archweb-ee6002c911952ddc8cfd07fded3de2c9b0193dc6.tar.xz
Django 1.6 upgrade, deprecation cleanup
PendingDeprecationWarning: commit_on_success is deprecated in favor of atomic. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-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 39cdcef..9fe60e2 100644
--- a/packages/views/flag.py
+++ b/packages/views/flag.py
@@ -84,7 +84,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 c37aa0f..fcc6de4 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,