diff options
-rw-r--r-- | forms.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7,6 +7,8 @@ class CreateGroup(Form): validators.Required(), validators.Regexp('^[a-zA-Z1-9_-]+$', message=u'Invalid group name (only simple characters, numbers, - and _).'), + validators.Regexp('^[a-zA-Z1-9]', + message=u'Group name should not start with a special character.'), Unique(Group, Group.name, message=u'A group with this name already exists.')]) |