From 282d6eea210480d3aff2ffbfd867a40af4b1db72 Mon Sep 17 00:00:00 2001 From: Thomas Manke Date: Mon, 1 Feb 2021 18:31:11 +0100 Subject: [PATCH] added S1 declaration to Deep Sequencing Request --- request/views.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/request/views.py b/request/views.py index 8e5b5609..bdd04695 100644 --- a/request/views.py +++ b/request/views.py @@ -420,6 +420,11 @@ def download_deep_sequencing_request(self, request, pk=None): # pragma: no cove } for obj in objects] records = sorted(records, key=lambda x: x['barcode'][3:]) + declaration='None of the samples listed below contain any disease carrying agents or GMO of' \ + ' risk group 2 or higher. They can be handled in an S1 laboratory without any safety concerns.' + + + pdf = PDF('Deep Sequencing Request') pdf.set_draw_color(217, 217, 217) pdf.alias_nb_pages() @@ -433,8 +438,9 @@ def download_deep_sequencing_request(self, request, pk=None): # pragma: no cove pdf.info_row('Email', user.email) pdf.info_row('Organization', organization) pdf.info_row('Cost Unit', cost_unit) + pdf.multi_info_row('Declaration', declaration) pdf.multi_info_row('Description', instance.description) - + y = pdf.get_y() pdf.line(pdf.l_margin + 1, y, pdf.fw - pdf.r_margin - 1, y)