In the database has a list of people. It is necessary if people.name begins with the letter listed then pick it up from the database. As such a filter to do that? Ie is not just a filter, startswith, and so it is with any of the letters in the list could the name begin. For example to pick up all people whose name begins with D. In for And have a request to make necessary. You can't take the entire list and means Python to filter out the desired.
Found here such
method (though not yet tested)
Model.objects.filter(any([Q(name__startswith=letter) for letter in 'abc']))
but I don't know how to add to it other conditions. In other words I have added to this and other filters to the same query.