Fix description of the validation rule for calibre library names so it actually matches the pattern

This commit is contained in:
Aurélien Couderc 2022-03-31 20:28:37 +00:00 committed by Sunil Mohan Adapa
parent d21e33268d
commit 37d066e285
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -16,9 +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'),
help_text=_('Only letters of the English alphabet, numbers '
'and the characters _ . and - without spaces or '
'special characters. Example: My_Library_2000'),
validators=[validators.RegexValidator(r'^[A-Za-z0-9_.-]+$')])
def clean_name(self):