Skip to content

Commit 2afb63a

Browse files
committed
Merge branch 'master' of github.com:ella/ella
2 parents 4e7881b + 9d375fe commit 2afb63a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ella/core/managers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def _retrieve_children(self, category):
6868
def get_children(self, category, recursive=False):
6969
#make sure this is the instance stored in our cache
7070
self._add_to_cache(category)
71-
children = self._retrieve_children(category)
71+
# copy the returned list. if recursive, we extend it below
72+
children = self._retrieve_children(category)[:]
7273
if recursive:
7374
to_process = children[:]
7475
while to_process:

0 commit comments

Comments
 (0)