From 4ac789efd3a9b29c4427728845bbac20cc3846d6 Mon Sep 17 00:00:00 2001 From: Benedek Nagy Date: Sun, 20 Mar 2022 20:47:02 +0000 Subject: [PATCH] calibre: explain correct name format for new library Closes: #2186. Reviewed-by: James Valleroy [jvalleroy: Remove duplicate import] [jvalleroy: Reword help text slightly] Signed-off-by: James Valleroy --- plinth/modules/calibre/forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plinth/modules/calibre/forms.py b/plinth/modules/calibre/forms.py index 0aeb162ed..84c7e187e 100644 --- a/plinth/modules/calibre/forms.py +++ b/plinth/modules/calibre/forms.py @@ -16,6 +16,9 @@ class CreateLibraryForm(forms.Form): name = forms.CharField( label=_('Name of the new library'), strip=True, + help_text=_('Only letters of the English alphabet and numbers, ' + 'without spaces or special characters. Example: ' + 'My_Library_2000'), validators=[validators.RegexValidator(r'^[A-Za-z0-9_.-]+$')]) def clean_name(self):