[Answered ]-Django ORM better way to manipulate django ORM query

1👍

You can obtain these Seats with:

Seat.objects.filter(hall=hid).exclude(booking__show=spk)

This will retrieve all Seats for a given Hall object hid where there is no Booking for a Show determined by the spk object.

Leave a comment