ikiwiki: Add help text about name restriction

This commit is contained in:
James Valleroy 2016-09-21 12:08:29 -04:00
parent 68046b638b
commit 758234de7b
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 5 additions and 2 deletions

View File

@ -43,6 +43,7 @@ All notable changes to this project will be documented in this file.
requiring root permission.
- xmpp: Replace jwchat with jsxc. Bump module version number so
current installs can be updated.
- ikiwiki: Allow only alphanumerics in wiki/blog name.
### Removed
- Remove width management for forms.

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'))