simple list filter documentation djando code example
Example 1: django filter in list
Blog.objects.filter(pk__in=[1, 4, 7])
Example 2: django filter exsist
if table.objects.filter(prop='value').count() > 0:
Blog.objects.filter(pk__in=[1, 4, 7])
if table.objects.filter(prop='value').count() > 0: