mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
Cleaned share related code
This commit is contained in:
11
forms.py
11
forms.py
@@ -40,17 +40,6 @@ class AddUserForm(forms.Form):
|
||||
raise forms.ValidationError(_("The two password fields didn't match."))
|
||||
return self.cleaned_data
|
||||
|
||||
class FileLinkShareForm(forms.Form):
|
||||
"""
|
||||
Form for sharing file shared link to emails.
|
||||
"""
|
||||
|
||||
email = forms.CharField(max_length=512, error_messages={
|
||||
'required': _("Email is required"),
|
||||
'max_length': _("Email is not longer than 512 characters"),
|
||||
})
|
||||
file_shared_link = forms.CharField()
|
||||
|
||||
class FileCommentForm(forms.Form):
|
||||
"""
|
||||
Form for leave comments on file.
|
||||
|
Reference in New Issue
Block a user