aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking/forms.py
diff options
context:
space:
mode:
authorJack Morgan <jack.morgan@intel.com>2018-01-08 23:56:21 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-08 23:56:21 +0000
commit6173050b6bfc3d96d3056c5de4c927f1b461fe6e (patch)
treec58f857f8734c41b48d3e43229aa235dfcce4152 /src/booking/forms.py
parentee1caa30008635717943bfdfecc692cde052a461 (diff)
parenteb75879a4632015b427d97ab945eaaa0bc26959a (diff)
Merge "Add Dashboard OS Selection Menu on Booking"
Diffstat (limited to 'src/booking/forms.py')
-rw-r--r--src/booking/forms.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/booking/forms.py b/src/booking/forms.py
index 2dbfacb..1f09c05 100644
--- a/src/booking/forms.py
+++ b/src/booking/forms.py
@@ -10,14 +10,15 @@
import django.forms as forms
-from booking.models import Installer, Scenario
+from booking.models import Installer, Scenario, Opsys
class BookingForm(forms.Form):
- fields = ['start', 'end', 'purpose', 'installer', 'scenario']
+ fields = ['start', 'end', 'purpose', 'opsys', 'installer', 'scenario']
start = forms.DateTimeField()
end = forms.DateTimeField()
purpose = forms.CharField(max_length=300)
+ opsys = forms.ModelChoiceField(queryset=Opsys.objects.all(), required=False)
installer = forms.ModelChoiceField(queryset=Installer.objects.all(), required=False)
- scenario = forms.ModelChoiceField(queryset=Scenario.objects.all(), required=False) \ No newline at end of file
+ scenario = forms.ModelChoiceField(queryset=Scenario.objects.all(), required=False)