mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
ikiwiki: Add help text about name restriction
This commit is contained in:
parent
68046b638b
commit
758234de7b
@ -43,6 +43,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
requiring root permission.
|
requiring root permission.
|
||||||
- xmpp: Replace jwchat with jsxc. Bump module version number so
|
- xmpp: Replace jwchat with jsxc. Bump module version number so
|
||||||
current installs can be updated.
|
current installs can be updated.
|
||||||
|
- ikiwiki: Allow only alphanumerics in wiki/blog name.
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- Remove width management for forms.
|
- Remove width management for forms.
|
||||||
|
|||||||
@ -30,8 +30,10 @@ class IkiwikiCreateForm(forms.Form):
|
|||||||
label=_('Type'),
|
label=_('Type'),
|
||||||
choices=[('wiki', 'Wiki'), ('blog', 'Blog')])
|
choices=[('wiki', 'Wiki'), ('blog', 'Blog')])
|
||||||
|
|
||||||
name = forms.CharField(label=_('Name'),
|
name = forms.CharField(
|
||||||
validators=[RegexValidator(regex='^[a-zA-Z0-9]+$')])
|
label=_('Name'),
|
||||||
|
help_text=_('Only alphanumeric characters are allowed.'),
|
||||||
|
validators=[RegexValidator(regex='^[a-zA-Z0-9]+$')])
|
||||||
|
|
||||||
admin_name = forms.CharField(label=_('Admin Account Name'))
|
admin_name = forms.CharField(label=_('Admin Account Name'))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user