AttributeType
Bases: TimeStampedModel
An attribute type indicates the data type of the attribute. Examples include Date, Float, Int, Text, and Yes/No.
| Attributes: |
|
|---|
Project
Bases: TimeStampedModel
A project is a container that includes users, allocations, publications, grants, and other research output.
| Attributes: |
|
|---|
last_project_review
property
| Returns: |
|
|---|
latest_grant
property
| Returns: |
|
|---|
latest_publication
property
| Returns: |
|
|---|
needs_review
property
| Returns: |
|
|---|
add_user
Adds a user to the project.
If a ProjectUser already exists, its role will be set to "Active" and its role updated. Otherwise, creates a new ProjectUser.
| Parameters: |
|
|---|
archive
Sets the project status to "Archived" and expires all active allocations. Sends project archive email to project users.
clean
Validates the project and raises errors if the project is invalid.
get_user_emails
Gets a set of user emails for notifications.
| Parameters: |
|
|---|
| Returns: |
|
|---|
has_perm
| Parameters: |
|
|---|
| Returns: |
|
|---|
remove_user
Marks a ProjectUser and any associated AllocationUsers as 'Removed'.
| Parameters: |
|
|---|
| Raises: |
|
|---|
user_permissions
| Parameters: |
|
|---|
| Returns: |
|
|---|
ProjectAdminComment
Bases: TimeStampedModel
A project admin comment is a comment that an admin can make on a project.
| Attributes: |
|
|---|
ProjectAttribute
Bases: TimeStampedModel
A project attribute class links a project attribute type and a project.
| Attributes: |
|
|---|
clean
Validates the project and raises errors if the project is invalid.
save
Saves the project attribute.
ProjectAttributeType
Bases: TimeStampedModel
A project attribute type indicates the type of the attribute. Examples include Project ID and Account Number.
| Attributes: |
|
|---|
ProjectAttributeUsage
Bases: TimeStampedModel
Project attribute usage indicates the usage of a project attribute.
| Attributes: |
|
|---|
ProjectPermission
Bases: Enum
A project permission stores the user, manager, pi, and update fields of a project.
ProjectReview
Bases: TimeStampedModel
A project review is what a user submits to their PI when their project status is Pending.
| Attributes: |
|
|---|
ProjectReviewStatusChoice
Bases: TimeStampedModel
A project review status choice is an option a user can choose when setting a project's status. Examples include Completed and Pending.
| Attributes: |
|
|---|
ProjectStatusChoice
Bases: TimeStampedModel
A project status choice indicates the status of the project. Examples include Active, Archived, and New.
| Attributes: |
|
|---|
ProjectUser
Bases: TimeStampedModel
A project user represents a user on the project.
| Attributes: |
|
|---|
ProjectUserMessage
Bases: TimeStampedModel
A project user message is a message sent to a user in a project.
| Attributes: |
|
|---|
ProjectUserRoleChoice
Bases: TimeStampedModel
A project user role choice is an option a PI, manager, or admin has while selecting a user's role. Examples include Manager and User.
| Attributes: |
|
|---|
ProjectUserStatusChoice
Bases: TimeStampedModel
A project user status choice indicates the status of a project user. Examples include Active, Pending, and Denied.
| Attributes: |
|
|---|