def heavy_init(self):
        if self.heavy_initialized:
            return
        assert not self.late, 'heavy init is no longer possible'
        self.heavy_initialized = True
        self.process = os.getpid()
        self.time = _datetime_factory()
        if self.frame is None and Flags.get_flag('introspection', True):
            self.frame = sys._getframe(1)
        if self.exc_info is True:
            self.exc_info = sys.exc_info()
A regression test to make sure KeyErrors thrown by inlines
dataset/ETHPy150Open getlogbook/logbook/logbook/base.py/LogRecord.heavy_init--crossover with--dataset/ETHPy150Open mintchaos/django_inlines/tests/core/tests/base.py/InlineTestCase.test_keyerrors