summaryrefslogtreecommitdiffstats
path: root/dashboard/src/booking
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-04-16 13:31:42 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2019-04-16 13:31:42 -0400
commit493d0e98ec85e6e91503fdd1b51c918bf74708e0 (patch)
treeb389e379d3b65b8e8d45f4482e3dfcb11d332b1e /dashboard/src/booking
parentaef82a1a9b2ba3524f33b23462ad469b44b37c71 (diff)
Fix quick booking image filtering bug
Change-Id: I9fe5b34be2113d3bf7d2e763730b6658f529d387 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'dashboard/src/booking')
-rw-r--r--dashboard/src/booking/forms.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/dashboard/src/booking/forms.py b/dashboard/src/booking/forms.py
index 9349ac1..de427ab 100644
--- a/dashboard/src/booking/forms.py
+++ b/dashboard/src/booking/forms.py
@@ -41,9 +41,7 @@ class QuickBookingForm(forms.Form):
super(QuickBookingForm, self).__init__(data=data, **kwargs)
self.fields["image"] = forms.ModelChoiceField(
- queryset=Image.objects.difference(
- Image.objects.filter(public=False).difference(Image.objects.filter(owner=user))
- )
+ Image.objects.filter(public=True) | Image.objects.filter(owner=user)
)
self.fields['users'] = forms.CharField(