mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-18 08:33:41 +00:00
calibre: explain correct name format for new library
Closes: #2186. Reviewed-by: James Valleroy <jvalleroy@mailbox.org> [jvalleroy: Remove duplicate import] [jvalleroy: Reword help text slightly] Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
c9bf209c2e
commit
4ac789efd3
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user