1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 19:00:12 +00:00

Modify form

This commit is contained in:
xiez
2012-06-21 22:48:06 +08:00
parent d477e543e7
commit 68d63efcb4

View File

@@ -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']