use query field in django filter code example Example: django filter values with OR operator Blog.objects.filter(pk__in=[1, 4, 7])