gaia_cob_pmp.app.models.observation¶
Attributes¶
Classes¶
Model for an observation instance. |
Functions¶
|
Does this user account correspond to a researcher who is a member of the project linked to this observation? |
Module Contents¶
- class gaia_cob_pmp.app.models.observation.Observation(*args, **kwargs)¶
Bases:
django.db.models.ModelModel for an observation instance.
- source¶
- proposal¶
- is_valid¶
- jd¶
- comment¶
- get_absolute_url() str¶
- get_data_status() str¶
- get_jd_or_placeholder() str¶
- gaia_cob_pmp.app.models.observation.User¶
- gaia_cob_pmp.app.models.observation.is_linked_project_member(user: User, observation: Observation) bool¶
Does this user account correspond to a researcher who is a member of the project linked to this observation?
- Parameters:
user – User to check.
observation – The Observation to check.
- Returns:
True if the user is a Researcher who is a member of this observation’s linked project, else False.