Admin¶
amlit.admin ¶
amlit.admin.Organisation ¶
Bases: TermModel
Organisation that has management. Having users with their role. Also has the owner Organisation can just access specific community
check_user_access ¶
Check user access UserOrganisation and UserOrganisationInvitation are combined Delete UserOrganisationInvitation first if more than max user Delete older UserOrganisation if more than max user
Source code in django_project/amlit/models/organisation.py
has_permission ¶
is_admin ¶
Return user is admin role
Source code in django_project/amlit/models/organisation.py
is_owner ¶
role ¶
Return role of user
Source code in django_project/amlit/models/organisation.py
amlit.admin.RolePermission ¶
Bases: TermModel
Permissions for role
amlit.admin.SitePreferences ¶
Bases: SingletonModel
Setting specifically for amlit
amlit.admin.User ¶
Bases: AbstractUser
Users within the Django authentication system are represented by this model.
Username and password are required. Other fields are optional. We make username as email format
organisations_as_admin
property
¶
Return organisation that has admin role or owner
amlit.admin.UserOrganisation ¶
Bases: Model
Model that link user with organisation with their role
delete ¶
When user organisation deleted, we need to notify user
amlit.admin.UserOrganisationInvitation ¶
Bases: Model
Model that have invitation of user to organisation
accept ¶
Accept invitation by user The user needs to be same with email
Source code in django_project/amlit/models/organisation.py
reject ¶
send_invitation ¶
Send email for this notification
Source code in django_project/amlit/models/organisation.py
amlit.admin.UserRole ¶
Bases: TermModel
Role for user in organisation
amlit.admin.UserTitle ¶
Bases: TermModel
Contains title of an user specification
API¶
amlit.api ¶
amlit.api.Organisation ¶
Bases: TermModel
Organisation that has management. Having users with their role. Also has the owner Organisation can just access specific community
check_user_access ¶
Check user access UserOrganisation and UserOrganisationInvitation are combined Delete UserOrganisationInvitation first if more than max user Delete older UserOrganisation if more than max user
Source code in django_project/amlit/models/organisation.py
has_permission ¶
is_admin ¶
Return user is admin role
Source code in django_project/amlit/models/organisation.py
is_owner ¶
role ¶
Return role of user
Source code in django_project/amlit/models/organisation.py
amlit.api.OrganisationAvailableUserSearch ¶
Bases: APIView
Return user that available for organisation
get ¶
Return data of features
Source code in django_project/amlit/api/organisation.py
amlit.api.OrganisationCreateScheduler ¶
Bases: APIView
Create scheduler
amlit.api.OrganisationEditScheduler ¶
Bases: APIView
Edit scheduler
amlit.api.OrganisationInvitation ¶
Bases: APIView
Create user invitation for an organisation
post ¶
Return data of features
Source code in django_project/amlit/api/organisation.py
amlit.api.OrganisationSchedulerActivate ¶
Bases: APIView
Active scheduler
amlit.api.OrganisationSchedulerInactivate ¶
Bases: APIView
Inactive scheduler
amlit.api.OrganisationSchedulerList ¶
Bases: APIView
Scheduler list of organisation
amlit.api.SchedulerOrganisation ¶
Bases: Model
Overridden scheduler for an organisation
activate ¶
inactivate ¶
update ¶
Update the scheduler based on data TODO: LIT We need to fix it to reuse function to create ticket, feature ticket and recurring ticket
Source code in django_project/amlit_helpdesk/models/scheduler.py
amlit.api.SchedulerTemplate ¶
Bases: Model
Scheduler template to create or update the recurring ticket Mostly used for schedule ticket ofr multi assets
amlit.api.User ¶
Bases: AbstractUser
Users within the Django authentication system are represented by this model.
Username and password are required. Other fields are optional. We make username as email format
organisations_as_admin
property
¶
Return organisation that has admin role or owner
amlit.api.UserOrganisation ¶
Bases: Model
Model that link user with organisation with their role
delete ¶
When user organisation deleted, we need to notify user
amlit.api.UserOrganisationDetail ¶
Bases: APIView
API for user organisation/access
delete ¶
Return data of features
Source code in django_project/amlit/api/organisation.py
put ¶
Return data of features
Source code in django_project/amlit/api/organisation.py
amlit.api.UserOrganisationInvitation ¶
Bases: Model
Model that have invitation of user to organisation
accept ¶
Accept invitation by user The user needs to be same with email
Source code in django_project/amlit/models/organisation.py
reject ¶
send_invitation ¶
Send email for this notification
Source code in django_project/amlit/models/organisation.py
amlit.api.UserOrganisationInvitationAccept ¶
Bases: APIView
Method to accept the invitation
amlit.api.UserOrganisationInvitationDetail ¶
Bases: APIView
API for invitation
delete ¶
Return data of features
Source code in django_project/amlit/api/organisation.py
put ¶
Return data of features
Source code in django_project/amlit/api/organisation.py
amlit.api.UserOrganisationInvitationReject ¶
Bases: APIView
Method to reject the invitation
amlit.api.UserRole ¶
Bases: TermModel
Role for user in organisation
Forms¶
amlit.forms ¶
Migrations¶
amlit.migrations ¶
Models¶
amlit.models ¶
amlit.models.Organisation ¶
Bases: TermModel
Organisation that has management. Having users with their role. Also has the owner Organisation can just access specific community
check_user_access ¶
Check user access UserOrganisation and UserOrganisationInvitation are combined Delete UserOrganisationInvitation first if more than max user Delete older UserOrganisation if more than max user
Source code in django_project/amlit/models/organisation.py
has_permission ¶
is_admin ¶
Return user is admin role
Source code in django_project/amlit/models/organisation.py
is_owner ¶
role ¶
Return role of user
Source code in django_project/amlit/models/organisation.py
amlit.models.OrganisationByUser ¶
Bases: Manager
admin_role ¶
Return organisation that user has admin roles
Source code in django_project/amlit/models/organisation.py
all_role ¶
Return organisation that user has every roles
Source code in django_project/amlit/models/organisation.py
amlit.models.OrganisationSubscriptionError ¶
Bases: Exception
Raised when organisation subscription error
amlit.models.RolePermission ¶
Bases: TermModel
Permissions for role
amlit.models.SitePreferences ¶
Bases: SingletonModel
Setting specifically for amlit
amlit.models.User ¶
Bases: AbstractUser
Users within the Django authentication system are represented by this model.
Username and password are required. Other fields are optional. We make username as email format
organisations_as_admin
property
¶
Return organisation that has admin role or owner
amlit.models.UserByString ¶
Source code in django_project/amlit/models/user.py
amlit.models.UserManager ¶
Bases: BaseUserManager
Define a model manager for User model with no username field.
create_superuser ¶
Create and save a SuperUser with the given email and password.
Source code in django_project/amlit/models/user.py
create_user ¶
Create and save a regular User with the given email and password.
Source code in django_project/amlit/models/user.py
amlit.models.UserOrganisation ¶
Bases: Model
Model that link user with organisation with their role
delete ¶
When user organisation deleted, we need to notify user
amlit.models.UserOrganisationInvitation ¶
Bases: Model
Model that have invitation of user to organisation
accept ¶
Accept invitation by user The user needs to be same with email
Source code in django_project/amlit/models/organisation.py
reject ¶
send_invitation ¶
Send email for this notification
Source code in django_project/amlit/models/organisation.py
amlit.models.UserRole ¶
Bases: TermModel
Role for user in organisation
amlit.models.UserTitle ¶
Bases: TermModel
Contains title of an user specification