django filter id in array code example
Example 1: django filter in list
Blog.objects.filter(pk__in=[1, 4, 7])
Example 2: django queryset filter queryset using list of items
Blog.objects.filter(pk__in=[1, 4, 7])
Blog.objects.filter(pk__in=[1, 4, 7])
Blog.objects.filter(pk__in=[1, 4, 7])