mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
Add quota and quota usage information.
Changed pages: * myhome * user info admin * org personal page * org admin page
This commit is contained in:
8
forms.py
8
forms.py
@@ -215,3 +215,11 @@ class RepoPassowrdForm(forms.Form):
|
||||
else:
|
||||
raise forms.ValidationError(u'未知错误')
|
||||
|
||||
class SetUserQuotaForm(forms.Form):
|
||||
"""
|
||||
Form for setting user quota.
|
||||
"""
|
||||
email = forms.CharField(error_messages={'required': '参数错误'})
|
||||
quota = forms.IntegerField(min_value=0,
|
||||
error_messages={'required': '容量不能为空',
|
||||
'min_value': '容量不能小于0'})
|
||||
|
Reference in New Issue
Block a user