From 2986314ba4f0c3f5f85acc4fd34f2c14a99fef68 Mon Sep 17 00:00:00 2001 From: amercader Date: Mon, 28 Oct 2024 10:46:11 +0100 Subject: [PATCH] Remove presets parsing cache As it creates issues when loading plugins (e.g. in tests) See https://github.com/ckan/ckanext-scheming/issues/424 Fixes #424 --- ckanext/scheming/plugins.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ckanext/scheming/plugins.py b/ckanext/scheming/plugins.py index 0980a684..e655e92a 100644 --- a/ckanext/scheming/plugins.py +++ b/ckanext/scheming/plugins.py @@ -103,8 +103,6 @@ def _add_template_directory(self, config): @staticmethod def _load_presets(config): - if _SchemingMixin._presets is not None: - return presets = reversed( config.get(