From 7a1353d637ef9090989abf8ca6978241c1dc29a2 Mon Sep 17 00:00:00 2001 From: 0einstein0 Date: Fri, 8 Sep 2023 14:49:20 +0200 Subject: [PATCH] fixed error message formatting issue --- invenio_rdm_records/contrib/imprint/custom_fields.py | 2 +- invenio_rdm_records/contrib/journal/custom_fields.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/invenio_rdm_records/contrib/imprint/custom_fields.py b/invenio_rdm_records/contrib/imprint/custom_fields.py index 3d06681a9..43f10c4ea 100644 --- a/invenio_rdm_records/contrib/imprint/custom_fields.py +++ b/invenio_rdm_records/contrib/imprint/custom_fields.py @@ -32,7 +32,7 @@ def field(self): "isbn": SanitizedUnicode( validate=is_isbn, error_messages={ - "validator_failed": _("Please provide a valid ISBN.") + "validator_failed": [_("Please provide a valid ISBN.")] }, ), "pages": SanitizedUnicode(), diff --git a/invenio_rdm_records/contrib/journal/custom_fields.py b/invenio_rdm_records/contrib/journal/custom_fields.py index c5a30c871..e3a3ef27d 100644 --- a/invenio_rdm_records/contrib/journal/custom_fields.py +++ b/invenio_rdm_records/contrib/journal/custom_fields.py @@ -34,7 +34,7 @@ def field(self): "issn": SanitizedUnicode( validate=is_issn, error_messages={ - "validator_failed": _("Please provide a valid ISSN.") + "validator_failed": [_("Please provide a valid ISSN.")] }, ), }