mybook = Book.objects.get(name="Jason's Cookbook")
for recipe in mybook.recipe_set.all():
    print(recipe.name)
for ingredient in recipe.ingredients:
    pass
Flattening one-to-many relationship in Django