Use the parent children for prefetching only works for same model

otherwise it must use the direct group

issue4319
review5721003
This commit is contained in:
Cédric Krier committed 2014-11-10 23:25:26 +01:00
1 parent 1768b21d89
commit 6db40b3a4b
1 file changed
+1 -1
+1 -1
View File
@@ -84,7 +84,7 @@ class Record(SignalEvent):
# Don't compute context for same group
or (record.context_get() == record_context)))
if self.parent:
if self.parent and self.parent.model_name == self.model_name:
group = sum(self.parent.group.children, [])
filter_ = filter_parent_group
else: