1👍
✅
You can obtain these Seat
s with:
Seat.objects.filter(hall=hid).exclude(booking__show=spk)
This will retrieve all Seat
s for a given Hall
object hid
where there is no Booking
for a Show
determined by the spk
object.
Source:stackexchange.com