ikiwiki: Add help text about name restriction

This commit is contained in:
James Valleroy committed 2016-09-21 12:08:29 -04:00
1 parent 68046b638b
commit 758234de7b
2 files changed
+5 -2

No files matched your search

+4 -2
View File
@@ -30,8 +30,10 @@ class IkiwikiCreateForm(forms.Form):
label=_('Type'),
choices=[('wiki', 'Wiki'), ('blog', 'Blog')])
name = forms.CharField(label=_('Name'),
validators=[RegexValidator(regex='^[a-zA-Z0-9]+$')])
name = forms.CharField(
label=_('Name'),
help_text=_('Only alphanumeric characters are allowed.'),
validators=[RegexValidator(regex='^[a-zA-Z0-9]+$')])
admin_name = forms.CharField(label=_('Admin Account Name'))