Skip to content

Commit

Permalink
resource_tree: fixed wrong argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo committed Nov 15, 2016
1 parent 3a4bf88 commit a5d61e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ziggurat_foundations/models/services/resource_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def __init__(self, service_cls):
service_cls.model = self.model
self.service = service_cls


def from_resource_deeper(self, resource_id=None, limit_depth=1000000,
db_session=None, *args, **kwargs):
return self.service.from_resource_deeper(
Expand Down Expand Up @@ -68,9 +67,8 @@ def check_node_parent(self, resource_id, new_parent_id, db_session=None,
db_session=db_session, *args, **kwargs)

def count_children(self, resource_id, db_session=None, *args, **kwargs):
return self.service.count_children(self, resource_id=resource_id,
db_session=db_session, *args,
**kwargs)
return self.service.count_children(
resource_id=resource_id, db_session=db_session, *args, **kwargs)

def check_node_position(
self, parent_id, position, on_same_branch, db_session=None,
Expand Down

0 comments on commit a5d61e9

Please sign in to comment.