remove deprecated commit_on_success (works for Django >= 1.6), update requirements to Django 1.6.7
This commit is contained in:
parent
63c1cdbe6b
commit
dd95d84404
@ -116,7 +116,7 @@ class Command(BaseCommand):
|
|||||||
reset_abuse_blocked = options['reset_abuse_blocked']
|
reset_abuse_blocked = options['reset_abuse_blocked']
|
||||||
flag_abuse = options['flag_abuse']
|
flag_abuse = options['flag_abuse']
|
||||||
notify_user = options['notify_user']
|
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():
|
for h in Host.objects.all():
|
||||||
if show_client or show_server:
|
if show_client or show_server:
|
||||||
output = u""
|
output = u""
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# packages always needed
|
# packages always needed
|
||||||
dnspython
|
dnspython
|
||||||
netaddr
|
netaddr
|
||||||
django==1.6.6
|
django==1.6.7
|
||||||
django-bootstrap-form
|
django-bootstrap-form
|
||||||
django-registration
|
django-registration
|
||||||
South
|
South
|
||||||
|
Loading…
x
Reference in New Issue
Block a user