Skip to content

Commit 67e0b64

Browse files
committed
docs: Fix a few typos
There are small typos in: - sqlalchemy_mptt/events.py - sqlalchemy_mptt/mixins.py Fixes: - Should read `existing` rather than `exisiting`. - Should read `children` rather than `cildren`. - Should read `beginning` rather than `begining`. Signed-off-by: Tim Gates <tim.gates@iress.com>
1 parent 2dfb79f commit 67e0b64

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

sqlalchemy_mptt/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def register_factory(self, sessionmaker):
532532
Registers this TreesManager instance to respond on
533533
`after_flush_postexec` events on the given session or session factory.
534534
This method returns the original argument, so that it can be used by
535-
wrapping an already exisiting instance:
535+
wrapping an already existing instance:
536536
537537
.. code-block:: python
538538
:linenos:

sqlalchemy_mptt/mixins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def get_node_id(node):
285285
for node in nodes:
286286
result = cls._node_to_dict(node, json, json_fields)
287287
parent_id = node.parent_id
288-
if node.level != min_level: # for cildren
288+
if node.level != min_level: # for children
289289
# Find parent in the tree
290290
if parent_id not in nodes_of_level.keys():
291291
continue
@@ -307,7 +307,7 @@ def _drilldown_query(self, nodes=None):
307307
return nodes.filter(self.is_ancestor_of(table, inclusive=True))
308308

309309
def drilldown_tree(self, session=None, json=False, json_fields=None):
310-
""" This method generate a branch from a tree, begining with current
310+
""" This method generate a branch from a tree, beginning with current
311311
node.
312312
313313
For example:

0 commit comments

Comments
 (0)