mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
fix atomicity (#1087)
* remove survey notifications * fixes #1086 atomicity issues Co-authored-by: Stefan Pratter <stefan@20c.com>
This commit is contained in:
@ -15,6 +15,7 @@ from dal import autocomplete
|
||||
from django import forms
|
||||
from django.conf import settings
|
||||
from django.core.management import call_command
|
||||
from django.db import transaction
|
||||
from reversion.models import Version
|
||||
|
||||
from peeringdb_server import maintenance
|
||||
@ -157,6 +158,7 @@ class CommandLineToolWrapper:
|
||||
)
|
||||
return self.result
|
||||
|
||||
@transaction.atomic
|
||||
def run(self, user, commit=False):
|
||||
if self.queue and commit:
|
||||
|
||||
|
Reference in New Issue
Block a user