summaryrefslogtreecommitdiffstats
path: root/dashboard/src/booking
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-03-01 18:21:51 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-03-01 18:21:51 +0000
commitcb967841ea9bbab7453567cec1a7195089b60a0e (patch)
tree8463bb7d1520f8f2eb551b84acc201aa749e924a /dashboard/src/booking
parentdb0a6c8551100c4064259be5861f642b274dd0dc (diff)
parent5b3c52c6a2ffd7ed2ff5655a3b000d21145c9bc2 (diff)
Merge "Enhance PDF/IDF Support"
Diffstat (limited to 'dashboard/src/booking')
-rw-r--r--dashboard/src/booking/quick_deployer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dashboard/src/booking/quick_deployer.py b/dashboard/src/booking/quick_deployer.py
index dd78f15..8a81d18 100644
--- a/dashboard/src/booking/quick_deployer.py
+++ b/dashboard/src/booking/quick_deployer.py
@@ -33,6 +33,7 @@ from resource_inventory.models import (
OPNFVConfig
)
from resource_inventory.resource_manager import ResourceManager
+from resource_inventory.pdf_templater import PDFTemplater
from notifier.manager import NotificationHandler
from booking.models import Booking
from dashboard.exceptions import (
@@ -291,7 +292,7 @@ def create_from_form(form, request):
booking.start = timezone.now()
booking.end = timezone.now() + timedelta(days=int(length))
booking.resource = resource_bundle
- booking.pdf = ResourceManager().makePDF(booking.resource)
+ booking.pdf = PDFTemplater.makePDF(booking.resource)
booking.config_bundle = cbundle
booking.save()
users_field = users_field[2:-2]