From e646f64551d929cb09db66ccf298051e98d64c68 Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Fri, 21 Aug 2020 12:37:44 +0200 Subject: [PATCH] TMSS-190: just copy name and description from draft to blueprint --- SAS/TMSS/src/tmss/tmssapp/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/src/tmss/tmssapp/tasks.py b/SAS/TMSS/src/tmss/tmssapp/tasks.py index 0e5e8eb630a..bd831a991c9 100644 --- a/SAS/TMSS/src/tmss/tmssapp/tasks.py +++ b/SAS/TMSS/src/tmss/tmssapp/tasks.py @@ -25,8 +25,8 @@ def create_scheduling_unit_blueprint_from_scheduling_unit_draft(scheduling_unit_ logger.debug("create_scheduling_unit_blueprint_from_scheduling_unit_draft(scheduling_unit_draft.id=%s name='%s')", scheduling_unit_draft.pk, scheduling_unit_draft.name) scheduling_unit_blueprint = SchedulingUnitBlueprint.objects.create( - name="%s (SchedulingUnitBlueprint)" % (scheduling_unit_draft.name,), - description="%s (SchedulingUnitBlueprint)" % (scheduling_unit_draft.description or "<no description>",), + name=scheduling_unit_draft.name, + description=scheduling_unit_draft.description, requirements_doc=scheduling_unit_draft.requirements_doc, do_cancel=False, draft=scheduling_unit_draft, -- GitLab