mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
First step of the groups subapp, view groups and request access done
This commit is contained in:
22
groups/app_defines.py
Normal file
22
groups/app_defines.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Group Types
|
||||
GROUP_TYPE_BUILTIN = 0
|
||||
GROUP_TYPE_PERMISSION = 1
|
||||
GROUP_TYPE_CORPORATE = 2
|
||||
|
||||
GROUP_TYPE_CHOICES = (
|
||||
(GROUP_TYPE_BUILTIN, 'Built-In'),
|
||||
(GROUP_TYPE_PERMISSION, 'Permission'),
|
||||
(GROUP_TYPE_CORPORATE, 'Corporate'),
|
||||
)
|
||||
|
||||
|
||||
# Request Status Codes
|
||||
REQUEST_PENDING = 0
|
||||
REQUEST_ACCEPTED = 1
|
||||
REQUEST_REJECTED = 2
|
||||
|
||||
REQUEST_STATUS_CHOICES = (
|
||||
(REQUEST_PENDING, 'Pending'),
|
||||
(REQUEST_ACCEPTED, 'Accepted'),
|
||||
(REQUEST_REJECTED, 'Rejected'),
|
||||
)
|
||||
Reference in New Issue
Block a user