1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +00:00

Fixed sending file shared link bug

This commit is contained in:
xiez
2012-09-15 21:16:34 +08:00
parent 2317ef5c60
commit fa447e729f
4 changed files with 54 additions and 59 deletions

View File

@@ -45,8 +45,11 @@ class FileLinkShareForm(forms.Form):
Form for sharing file shared link to emails.
"""
email = forms.CharField(max_length=512)
file_shared_link = forms.CharField(max_length=40)
email = forms.CharField(max_length=512, error_messages={
'required': '输入不能为空',
'max_length': '邮箱太长不超过512个字符'
})
file_shared_link = forms.CharField()
class FileCommentForm(forms.Form):
"""