gaia_cob_pmp.app.models.proposal

Attributes

Classes

Proposal

Model for an instrument proposal.

Functions

is_linked_project_member(→ bool)

Does this user account correspond to a researcher who is a member of the project linked to this proposal?

Module Contents

class gaia_cob_pmp.app.models.proposal.Proposal(*args, **kwargs)

Bases: django.db.models.Model

Model for an instrument proposal.

class Status(*args, **kwds)

Bases: django.db.models.TextChoices

The allowed entries for the Status field.

Initialize self. See help(type(self)) for accurate signature.

PLANNED
SUBMITTED
ACCEPTED
REJECTED
status
description
instrument
project
get_absolute_url() str
get_project_index() int
__str__() str
__repr__() str
gaia_cob_pmp.app.models.proposal.User
gaia_cob_pmp.app.models.proposal.is_linked_project_member(user: User, proposal: Proposal) bool

Does this user account correspond to a researcher who is a member of the project linked to this proposal?

Parameters:
  • user – User to check.

  • proposal – The Proposal to check.

Returns:

True if the user is a Researcher who is a member of this proposal’s linked project, else False.