Skip to content

Commit

Permalink
add joined loading of node children
Browse files Browse the repository at this point in the history
  • Loading branch information
sidloki committed Jan 4, 2014
1 parent b913b2c commit 9126e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ptahcms/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Node(ptah.get_base()):

__children__ = sa.orm.relationship(
'Node', backref=sa.orm.backref('__parent_ref__', remote_side=[__uri__]),
cascade='all')
cascade='all', lazy='joined', join_depth=1)

__mapper_args__ = {'polymorphic_on': __type_id__, 'with_polymorphic': '*'}

Expand Down

0 comments on commit 9126e75

Please sign in to comment.