How can I filter a Django query with a list of values?

From the Django documentation:

Blog.objects.filter(pk__in=[1, 4, 7])

Leave a Comment