[IMP] speed improvement, no double None in _fields_triggers

This commit is contained in:
Fabien Pinckaers
2019-08-26 10:20:09 +00:00
parent d155a0a03a
commit 74b055f75c
+2 -1
View File
@@ -723,7 +723,8 @@ class Field(MetaField('DummyField', (object,), {})):
for node in nodes:
for f in reversed(path):
node = node.setdefault(f, {})
node.setdefault(None, []).append(self)
n = node.setdefault(None, [])
if self not in n: n.append(self)
for dotnames in self.depends:
field_model = model