aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/workflow/models.py')
-rw-r--r--src/workflow/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/workflow/models.py b/src/workflow/models.py
index 4a5616e..f550a38 100644
--- a/src/workflow/models.py
+++ b/src/workflow/models.py
@@ -11,6 +11,7 @@
from django.template.loader import get_template
from django.http import HttpResponse
from django.utils import timezone
+from django.db import transaction
import yaml
import requests
@@ -559,6 +560,7 @@ class Repository():
self.el[self.RESULT] = bundle
return False
+ @transaction.atomic # TODO: Rewrite transactions with savepoints at user level for all workflows
def make_booking(self):
models = self.el[self.BOOKING_MODELS]
owner = self.el[self.SESSION_USER]