mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
Fix description of the validation rule for calibre library names so it actually matches the pattern
This commit is contained in:
parent
d21e33268d
commit
37d066e285
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user