[Answered ]-How to 'add' QuerySet in Django?

1👍

You can use __in lookup with distinct() so:

booking_list = Booking.objects.filter(rooms__in=[i for i in numbers]).distinct("rooms")

Leave a comment