Skip to content
Snippets Groups Projects
Commit 65cda55e authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

TMSS-520: annotate period category for clarity

parent ded32ac7
No related branches found
No related tags found
1 merge request!404Resolve TMSS-520
...@@ -116,7 +116,7 @@ class Quantity(AbstractChoice): ...@@ -116,7 +116,7 @@ class Quantity(AbstractChoice):
class PeriodCategory(AbstractChoice): class PeriodCategory(AbstractChoice):
"""Defines the model and predefined list of possible period categories to be used in Project. """Defines the model and predefined list of possible period categories to be used in Project as a policy for managing the project's lifetime.
The items in the Choices class below are automagically populated into the database via a data migration.""" The items in the Choices class below are automagically populated into the database via a data migration."""
class Choices(Enum): class Choices(Enum):
...@@ -305,8 +305,8 @@ class Project(NamedCommonPK): ...@@ -305,8 +305,8 @@ class Project(NamedCommonPK):
private_data = BooleanField(default=True, help_text='True if data of this project is sensitive. Sensitive data is not made public.') private_data = BooleanField(default=True, help_text='True if data of this project is sensitive. Sensitive data is not made public.')
expert = BooleanField(default=False, help_text='Expert projects put more responsibility on the PI.') expert = BooleanField(default=False, help_text='Expert projects put more responsibility on the PI.')
filler = BooleanField(default=False, help_text='Use this project to fill up idle telescope time.') filler = BooleanField(default=False, help_text='Use this project to fill up idle telescope time.')
project_category = ForeignKey('ProjectCategory', null=True, on_delete=PROTECT, help_text='Project category.') project_category = ForeignKey('ProjectCategory', help_text='Category this project falls under.', null=True, on_delete=PROTECT, help_text='Project category.')
period_category = ForeignKey('PeriodCategory', null=True, on_delete=PROTECT, help_text='Period category.') period_category = ForeignKey('PeriodCategory', help_text='Policy for managing the lifetime of this project.', null=True, on_delete=PROTECT, help_text='Period category.')
auto_pin = BooleanField(default=False, help_text='True if the output_pinned flag of tasks in this project should be set True on creation.') auto_pin = BooleanField(default=False, help_text='True if the output_pinned flag of tasks in this project should be set True on creation.')
path_to_project = "project" path_to_project = "project"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment