Skip to content
Snippets Groups Projects
Commit 94082e0e authored by Mario Raciti's avatar Mario Raciti
Browse files

TMSS-519: Update scheduling_set/<id>/copy_draft(s) description

parent 06ab6a95
No related branches found
No related tags found
1 merge request!458Resolve TMSS-519
...@@ -654,9 +654,9 @@ class SchedulingUnitDraftCopyFromSchedulingSetViewSet(LOFARCopyViewSet): ...@@ -654,9 +654,9 @@ class SchedulingUnitDraftCopyFromSchedulingSetViewSet(LOFARCopyViewSet):
else: else:
return models.SchedulingUnitDraft.objects.all() return models.SchedulingUnitDraft.objects.all()
@swagger_auto_schema(responses={201: "The new TaskDraft(s) copied from the TaskDraft(s) in this SchedulingUnitSet", @swagger_auto_schema(responses={201: "The SchedulingUnitSet which will also contain the created new draft(s)",
403: 'forbidden'}, 403: 'forbidden'},
operation_description="Copy the TaskDraft(s) in this SchedulingUnitSet to new TaskDraft(s).") operation_description="Copy the SchedulingUnitDraft(s) in this SchedulingUnitSet to new SchedulingUnitDraft(s)")
def create(self, request, *args, **kwargs): def create(self, request, *args, **kwargs):
if 'id' in kwargs: if 'id' in kwargs:
scheduling_set = get_object_or_404(models.SchedulingSet, pk=kwargs['id']) scheduling_set = get_object_or_404(models.SchedulingSet, pk=kwargs['id'])
......
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