Skip to content

Commit

Permalink
new eager loading
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 15, 2016
1 parent 3257fdd commit 1f27b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/budy/controllers/api/bag.py
Expand Up @@ -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
)
Expand All @@ -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
Expand Down

0 comments on commit 1f27b60

Please sign in to comment.