We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e7881b + 9d375fe commit 2afb63aCopy full SHA for 2afb63a
ella/core/managers.py
@@ -68,7 +68,8 @@ def _retrieve_children(self, category):
68
def get_children(self, category, recursive=False):
69
#make sure this is the instance stored in our cache
70
self._add_to_cache(category)
71
- children = self._retrieve_children(category)
+ # copy the returned list. if recursive, we extend it below
72
+ children = self._retrieve_children(category)[:]
73
if recursive:
74
to_process = children[:]
75
while to_process:
0 commit comments