python queryset to list code example Example: django filter values with OR operator Blog.objects.filter(pk__in=[1, 4, 7])