From 1f27b600cbbd8d5afe334386cb355387c71e86e5 Mon Sep 17 00:00:00 2001 From: joamag Date: Tue, 15 Mar 2016 19:20:33 +0000 Subject: [PATCH] new eager loading --- src/budy/controllers/api/bag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/budy/controllers/api/bag.py b/src/budy/controllers/api/bag.py index 8a1ba0d1..1c77be52 100644 --- a/src/budy/controllers/api/bag.py +++ b/src/budy/controllers/api/bag.py @@ -48,7 +48,7 @@ class BagApiController(appier.Controller): def list(self): object = appier.get_object(alias = True, find = True) products = budy.Bag.find( - eager = ("lines",), + eager = ("lines", "lines.product"), map = True, **object ) @@ -70,7 +70,7 @@ def key(self): def show(self, key): bag = budy.Bag.get( key = key, - eager = ("lines",), + eager = ("lines", "lines.product"), map = True ) return bag