Skip to content
Snippets Groups Projects
Commit 82ce63b2 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-152: just copy the name and description

parent 896b7dc0
No related branches found
No related tags found
1 merge request!180Resolve TMSS-152
...@@ -132,17 +132,14 @@ def create_task_blueprint_from_task_draft(task_draft: models.TaskDraft) -> model ...@@ -132,17 +132,14 @@ def create_task_blueprint_from_task_draft(task_draft: models.TaskDraft) -> model
if scheduling_unit_blueprint is None: if scheduling_unit_blueprint is None:
scheduling_unit_blueprint = create_scheduling_unit_blueprint_from_scheduling_unit_draft(task_draft.scheduling_unit_draft) scheduling_unit_blueprint = create_scheduling_unit_blueprint_from_scheduling_unit_draft(task_draft.scheduling_unit_draft)
description_str = "Task Blueprint " + task_draft.description
name_str = "Task Blueprint of " + task_draft.name
task_blueprint = TaskBlueprint.objects.create( task_blueprint = TaskBlueprint.objects.create(
description=description_str, description=task_draft.description,
name=name_str, name=task_draft.name,
do_cancel=False, do_cancel=False,
draft=task_draft, draft=task_draft,
scheduling_unit_blueprint=scheduling_unit_blueprint, scheduling_unit_blueprint=scheduling_unit_blueprint,
specifications_doc=task_draft.specifications_doc, specifications_doc=task_draft.specifications_doc,
specifications_template=task_draft.specifications_template specifications_template=task_draft.specifications_template)
)
logger.info("created task_blueprint id=%s from task_draft id=%s", task_blueprint.pk, task_draft.pk) logger.info("created task_blueprint id=%s from task_draft id=%s", task_blueprint.pk, task_draft.pk)
......
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