This is an automated email from the ASF dual-hosted git repository. gcruz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit 599de96b2f710677ec8ad423465d3aa811cddb6c Author: Dillon Walls <[email protected]> AuthorDate: Wed Mar 8 02:28:44 2023 +0000 [#8503] deprecation warnings - fix misc Decoration.validation -> Decoration.validations warning --- ForgeImporters/forgeimporters/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ForgeImporters/forgeimporters/base.py b/ForgeImporters/forgeimporters/base.py index bbafbe65e..59c729acf 100644 --- a/ForgeImporters/forgeimporters/base.py +++ b/ForgeImporters/forgeimporters/base.py @@ -348,7 +348,7 @@ class ToolImportControllerMeta(type): the appropriate App for this controller's importer. """ - if hasattr(cls, 'create') and getattr(cls.create.decoration, 'validation', None) is None: + if hasattr(cls, 'create') and getattr(cls.create.decoration, 'validations', None) is None: index_meth = getattr(cls.index, '__func__', cls.index) cls.create = validate(cls.import_form(aslist(importer.target_app)[0]), error_handler=index_meth)(cls.create)
