diff --git a/SAS/TMSS/src/tmss/tmssapp/tasks.py b/SAS/TMSS/src/tmss/tmssapp/tasks.py index 837da51d8b9b1f0ed8f9b12438a07f8ebf71ab1e..68a3f3c26f6d49296851d1630d99272a64f6a156 100644 --- a/SAS/TMSS/src/tmss/tmssapp/tasks.py +++ b/SAS/TMSS/src/tmss/tmssapp/tasks.py @@ -132,17 +132,14 @@ def create_task_blueprint_from_task_draft(task_draft: models.TaskDraft) -> model if scheduling_unit_blueprint is None: 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( - description=description_str, - name=name_str, + description=task_draft.description, + name=task_draft.name, do_cancel=False, draft=task_draft, scheduling_unit_blueprint=scheduling_unit_blueprint, 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)