mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-22 03:16:34 +00:00
Modify form
This commit is contained in:
@@ -4,8 +4,8 @@ from django import forms
|
|||||||
from seahub.utils import validate_group_name
|
from seahub.utils import validate_group_name
|
||||||
|
|
||||||
class ProfileForm(forms.Form):
|
class ProfileForm(forms.Form):
|
||||||
nickname = forms.CharField(max_length=64)
|
nickname = forms.CharField(max_length=64, required=False)
|
||||||
intro = forms.CharField(max_length=256)
|
intro = forms.CharField(max_length=256, required=False)
|
||||||
|
|
||||||
def clean_nickname(self):
|
def clean_nickname(self):
|
||||||
nickname = self.cleaned_data['nickname']
|
nickname = self.cleaned_data['nickname']
|
||||||
|
Reference in New Issue
Block a user