diff --git a/apiserver/database/model/task/task.py b/apiserver/database/model/task/task.py index 93d081d..9c325d2 100644 --- a/apiserver/database/model/task/task.py +++ b/apiserver/database/model/task/task.py @@ -205,7 +205,7 @@ class Task(AttributedDocument): completed = DateTimeField() published = DateTimeField() active_duration = IntField(default=0) - parent = StringField() + parent = StringField(reference_field="Task") project = StringField(reference_field=Project, user_set_allowed=True) output: Output = EmbeddedDocumentField(Output, default=Output) execution: Execution = EmbeddedDocumentField(Execution, default=Execution)