aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking/views.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2020-03-03 12:30:36 -0500
committerParker Berberian <pberberian@iol.unh.edu>2020-03-16 09:18:31 -0400
commitb360e0e417f787e0266268596d630b87e88283d1 (patch)
tree64e6812e816b22f3ee4127113071966c0d30e061 /src/booking/views.py
parent4940cda1806aa13591485b996264ddc887202d35 (diff)
Fixing and adding tests for the new resource models.
Change-Id: I4dd0569411b415a3e8a8de43d4b99e927e5b7821 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/booking/views.py')
-rw-r--r--src/booking/views.py6
1 files changed, 3 insertions, 3 deletions
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)