Account Models

class account.models.AWSRequest(*args, **kwargs)

AWSRequest class which holds basic information about the status of a user account.

A user can have a status of ‘Pending,’ ‘Completed,’ or ‘Denied,’ depending on the approval status of their account

status

The status of this user’s account. (‘Pending,’ ‘Completed,’ or ‘Denied’)

user

The user which this AWSRequest is associated with.

class account.models.AnaGroup(*args, **kwargs)

AnaGroup model.

All users belong to a group.

name

Name of the group.

class account.models.Base(*args, **kwargs)

Base Class which other Models inherit from.

Contains timestamp information about the model.

created_on

Date/time when record was created.

save(*args, **kwargs)

Overriden save function to change ‘updated_on’ to reflect proper update time

updated_on

Date/time when record was updated.

class account.models.IAM(*args, **kwargs)

IAM model which is associated with a user.

Each IAM model contains basic AWS IAM information such as username, access key, and secret access key of the IAM account.

aws_access_key

AWS access key

aws_secret_access_key

AWS secret access key

aws_user

AWS account username.

group

The group this IAM is associated with

save(*args, **kwargs)

Overriden save function to update the AWSRequest class associated with this IAM user. Changes the AWSRequest status to ‘Completed.’

user

The User this IAM is associated with.

class account.models.User(*args, **kwargs)

Basic User model.

Contains basic user information such as email, name, admin rights, etc. A new user is created every time someone signs up using their email through the website.

data_transfer_permission

Boolean value checking for permission for individual users access to data transfer.

date_added

Date/time when user was added.

date_updated

Date/time when user was updated.

email

Email associated with the user. Users are identified by this email address.

first_name

First Name of User.

get_full_name()

Returns first and last name of user.

get_short_name()

Returns email of user.

has_module_perms(app_label)

Returns True.

has_perm(perm, obj=None)

Returns True.

is_admin

Boolean value checking if the account is an admin.

last_name

Last Name of User.

account.models

alias of account.models