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:
1 parent
1768b21d89
commit
6db40b3a4b
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user