From dd95d844041efa5a946f2823790d3228df844e8d Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 26 Sep 2014 02:32:46 +0200 Subject: [PATCH] remove deprecated commit_on_success (works for Django >= 1.6), update requirements to Django 1.6.7 --- nsupdate/management/commands/faults.py | 2 +- requirements.d/all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nsupdate/management/commands/faults.py b/nsupdate/management/commands/faults.py index d57cb6a..81c6691 100644 --- a/nsupdate/management/commands/faults.py +++ b/nsupdate/management/commands/faults.py @@ -116,7 +116,7 @@ class Command(BaseCommand): reset_abuse_blocked = options['reset_abuse_blocked'] flag_abuse = options['flag_abuse'] notify_user = options['notify_user'] - with transaction.commit_on_success(): # TODO: after requiring django 1.6, use atomic() + with transaction.atomic(): for h in Host.objects.all(): if show_client or show_server: output = u"" diff --git a/requirements.d/all.txt b/requirements.d/all.txt index 9e8ffee..72b58d9 100644 --- a/requirements.d/all.txt +++ b/requirements.d/all.txt @@ -1,7 +1,7 @@ # packages always needed dnspython netaddr -django==1.6.6 +django==1.6.7 django-bootstrap-form django-registration South