queryset to find elements in database in django view code example Example: django filter values with OR operator Blog.objects.filter(pk__in=[1, 4, 7])