how to write a query to reverse lookup a value from a for loop in django code example Example: objects.filter django >>> Entry.objects.filter(blog_id=4)