From b360e0e417f787e0266268596d630b87e88283d1 Mon Sep 17 00:00:00 2001
From: Parker Berberian <pberberian@iol.unh.edu>
Date: Tue, 3 Mar 2020 12:30:36 -0500
Subject: Fixing and adding tests for the new resource models.

Change-Id: I4dd0569411b415a3e8a8de43d4b99e927e5b7821
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
---
 src/booking/views.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/booking')

diff --git a/src/booking/views.py b/src/booking/views.py
index 39b24a7..daaf026 100644
--- a/src/booking/views.py
+++ b/src/booking/views.py
@@ -42,11 +42,11 @@ def quick_create(request):
         context = {}
 
         r_manager = ResourceManager.getInstance()
-        profiles = {}
+        templates = {}
         for lab in Lab.objects.all():
-            profiles[str(lab)] = r_manager.getAvailableHostTypes(lab)
+            templates[str(lab)] = r_manager.getAvailableResourceTemplates(lab, request.user)
 
-        context['lab_profile_map'] = profiles
+        context['lab_profile_map'] = templates
 
         context['form'] = QuickBookingForm(default_user=request.user.username, user=request.user)
 
-- 
cgit 1.2.3-korg