mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-01 23:38:37 +00:00
Remove nickname checking, issue#20
This commit is contained in:
parent
7370de04f3
commit
330c00a3ac
@ -2,15 +2,7 @@
|
||||
from django import forms
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from seahub.utils import validate_group_name
|
||||
|
||||
class ProfileForm(forms.Form):
|
||||
nickname = forms.CharField(max_length=64, required=False)
|
||||
intro = forms.CharField(max_length=256, required=False)
|
||||
|
||||
def clean_nickname(self):
|
||||
nickname = self.cleaned_data['nickname']
|
||||
if validate_group_name(nickname):
|
||||
return nickname
|
||||
else:
|
||||
raise forms.ValidationError(_(u'Nickname can only contain characters, numbers or underscore.'))
|
||||
|
Loading…
Reference in New Issue
Block a user