summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(