1
0
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:
killing
2012-10-26 14:27:54 +08:00
parent 0106d08911
commit 1d8ae030c2
11 changed files with 147 additions and 44 deletions

View File

@@ -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'})