diff options
author | Jack Morgan <jack.morgan@intel.com> | 2018-01-08 23:56:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-08 23:56:21 +0000 |
commit | 6173050b6bfc3d96d3056c5de4c927f1b461fe6e (patch) | |
tree | c58f857f8734c41b48d3e43229aa235dfcce4152 /src/booking/views.py | |
parent | ee1caa30008635717943bfdfecc692cde052a461 (diff) | |
parent | eb75879a4632015b427d97ab945eaaa0bc26959a (diff) |
Merge "Add Dashboard OS Selection Menu on Booking"
Diffstat (limited to 'src/booking/views.py')
-rw-r--r-- | src/booking/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/booking/views.py b/src/booking/views.py index 6fdca0e..da2fe11 100644 --- a/src/booking/views.py +++ b/src/booking/views.py @@ -70,6 +70,7 @@ class BookingFormView(FormView): booking = Booking(start=form.cleaned_data['start'], end=form.cleaned_data['end'], purpose=form.cleaned_data['purpose'], + opsys=form.cleaned_data['opsys'], installer=form.cleaned_data['installer'], scenario=form.cleaned_data['scenario'], resource=self.resource, user=user) @@ -117,6 +118,6 @@ class ResourceBookingsJSON(View): def get(self, request, *args, **kwargs): resource = get_object_or_404(Resource, id=self.kwargs['resource_id']) bookings = resource.booking_set.get_queryset().values('id', 'start', 'end', 'purpose', - 'jira_issue_status', + 'jira_issue_status', 'opsys__name', 'installer__name', 'scenario__name') return JsonResponse({'bookings': list(bookings)}) |