Skip to content

Commit

Permalink
fixed error message formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 committed Sep 8, 2023
1 parent 2e363f3 commit fa809ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion invenio_rdm_records/contrib/imprint/custom_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion invenio_rdm_records/contrib/journal/custom_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")]
},
),
}
Expand Down

0 comments on commit fa809ba

Please sign in to comment.