(core) Fix lookups in default formulas

Test Plan: TODO

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2603
This commit is contained in:
Dmitry S
2020-09-09 21:48:08 -04:00
parent 166143557a
commit 2fbd3f1706
4 changed files with 135 additions and 6 deletions

View File

@@ -181,8 +181,7 @@ class DocModel(object):
def __init__(self, engine):
self._engine = engine
global global_docmodel # pylint: disable=global-statement
if not global_docmodel:
global_docmodel = self
global_docmodel = self
# Set of records scheduled for automatic removal.
self._auto_remove_set = set()