I need to perform a django query that checks if a field contains all values within a list. The list will be of varying length
Example
User.objects.fi
Just another approach.
qs = User.objects.all() for search_term in ['x', 'y', 'z']: qs = qs.filter(first_name__contains=search_term)
I'm not sure if it is better, but it's more readable.