mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-21 19:00:12 +00:00
Modify form
This commit is contained in:
@@ -4,8 +4,8 @@ from django import forms
|
||||
from seahub.utils import validate_group_name
|
||||
|
||||
class ProfileForm(forms.Form):
|
||||
nickname = forms.CharField(max_length=64)
|
||||
intro = forms.CharField(max_length=256)
|
||||
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']
|
||||
|
Reference in New Issue
Block a user