allow as_trees to deal with orphan children

This commit is contained in:
Massimo
2013-10-21 14:32:49 -05:00
parent 665f728946
commit 34b377522a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.10.20.22.54.26
Version 2.7.4-stable+timestamp.2013.10.21.14.31.25
+1
View File
@@ -10658,6 +10658,7 @@ class Rows(object):
for row in self:
drows[row.id] = row
row[children_name] = []
for row in self:
parent = row[parent_name]
if parent is None:
roots.append(row)