mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
Clean up shared repo listing code and add permission for public repos.
This commit is contained in:
5
forms.py
5
forms.py
@@ -111,6 +111,11 @@ class RepoCreateForm(forms.Form):
|
||||
raise forms.ValidationError("两次输入的密码不一致")
|
||||
return self.cleaned_data
|
||||
|
||||
class SharedRepoCreateForm(RepoCreateForm):
|
||||
"""
|
||||
Used for creating group repo and public repo
|
||||
"""
|
||||
permission = forms.ChoiceField(choices=(('rw', 'read-write'), ('r', 'read-only')))
|
||||
|
||||
class RepoNewFileForm(forms.Form):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user