summaryrefslogtreecommitdiffstats
path: root/src/booking/forms.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-06-03 13:05:29 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2020-06-04 15:49:23 -0400
commit1fec02fd0a4d7af8a89beb91d8d751a23e5086e0 (patch)
tree628204d724fad0eeb7711029a329ca30fd5dedfd /src/booking/forms.py
parent530271c247a4ce538e3aa69fd3893481fada44ab (diff)
Allow not setting image for multi-node pods
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: Ieee0802291901b4b14d756781fb2182bff9afae6 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/booking/forms.py')
-rw-r--r--src/booking/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/booking/forms.py b/src/booking/forms.py
index 886f0f6..2a8784f 100644
--- a/src/booking/forms.py
+++ b/src/booking/forms.py
@@ -36,7 +36,7 @@ class QuickBookingForm(forms.Form):
super(QuickBookingForm, self).__init__(data=data, **kwargs)
self.fields["image"] = forms.ModelChoiceField(
- Image.objects.filter(public=True) | Image.objects.filter(owner=user)
+ Image.objects.filter(public=True) | Image.objects.filter(owner=user), required=False
)
self.fields['users'] = SearchableSelectMultipleField(