-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathdefault.py
55 lines (31 loc) · 1.27 KB
/
default.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from organizations.models import Organization
from organizations.views.base import ViewFactory
from organizations.views.mixins import AdminRequiredMixin
from organizations.views.mixins import MembershipRequiredMixin
from organizations.views.mixins import OwnerRequiredMixin
bases = ViewFactory(Organization)
class OrganizationList(bases.OrganizationList):
pass
class OrganizationCreate(bases.OrganizationCreate):
"""
Allows any user to create a new organization.
"""
pass
class OrganizationDetail(MembershipRequiredMixin, bases.OrganizationDetail):
pass
class OrganizationUpdate(AdminRequiredMixin, bases.OrganizationUpdate):
pass
class OrganizationDelete(OwnerRequiredMixin, bases.OrganizationDelete):
pass
class OrganizationUserList(MembershipRequiredMixin, bases.OrganizationUserList):
pass
class OrganizationUserDetail(AdminRequiredMixin, bases.OrganizationUserDetail):
pass
class OrganizationUserUpdate(AdminRequiredMixin, bases.OrganizationUserUpdate):
pass
class OrganizationUserCreate(AdminRequiredMixin, bases.OrganizationUserCreate):
pass
class OrganizationUserRemind(AdminRequiredMixin, bases.OrganizationUserRemind):
pass
class OrganizationUserDelete(AdminRequiredMixin, bases.OrganizationUserDelete):
pass