@property
    def datamodel(self):
        try:
            return self.pad.db.datamodels[self._data['_model']]
        except LookupError:
            # If we cannot find the model we fall back to the default one.
            return self.pad.db.default_model
Test that extra files found in git are correctly added.
dataset/ETHPy150Open lektor/lektor/lektor/db.py/Record.datamodel--crossover with--dataset/ETHPy150Open blue-yonder/pyscaffold/pyscaffold/contrib/pbr/pbr/tests/test_core.py/TestGitSDist.test_sdist_git_extra_files