query to fetch foreign key records in django using Q code example Example: objects.filter django >>> Entry.objects.filter(blog_id=4)