summaryrefslogtreecommitdiffstats
path: root/dashboard/src/workflow/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/src/workflow/models.py')
-rw-r--r--dashboard/src/workflow/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dashboard/src/workflow/models.py b/dashboard/src/workflow/models.py
index 7dae279..cdfddef 100644
--- a/dashboard/src/workflow/models.py
+++ b/dashboard/src/workflow/models.py
@@ -21,6 +21,7 @@ from api.models import JobFactory
from dashboard.exceptions import ResourceAvailabilityException, ModelValidationException
from resource_inventory.models import Image, GenericInterface
from resource_inventory.resource_manager import ResourceManager
+from resource_inventory.pdf_templater import PDFTemplater
from notifier.manager import NotificationHandler
from booking.models import Booking
@@ -577,7 +578,7 @@ class Repository():
booking.collaborators.add(collaborator)
try:
- booking.pdf = ResourceManager().makePDF(booking.resource)
+ booking.pdf = PDFTemplater.makePDF(booking.resource)
booking.save()
except Exception as e:
return "BOOK, failed to create Pod Desriptor File: " + str(e)