mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-28 07:57:50 +00:00
11 lines
305 B
Python
11 lines
305 B
Python
from django import forms
|
|
|
|
class RepoShareForm(forms.Form):
|
|
"""
|
|
Form for sharing repo to user or group.
|
|
"""
|
|
|
|
email_or_group = forms.CharField(max_length=512)
|
|
repo_id = forms.CharField(max_length=36)
|
|
permission = forms.ChoiceField(choices=(('rw', 'read-write'), ('r', 'read-only')))
|