django query get object code example
Example 1: objects.filter django
>>> Entry.objects.filter(blog_id=4)
Example 2: django filter values with OR operator
Blog.objects.filter(pk__in=[1, 4, 7])
>>> Entry.objects.filter(blog_id=4)
Blog.objects.filter(pk__in=[1, 4, 7])