Commit d9385e08 authored by Gladys Forte's avatar Gladys Forte

print

parent f1b89774
......@@ -154,8 +154,9 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
def UserInstruction(self, request, code=None):
attach_instruc = MasterAttachment.objects.filter(attch_ref='etl_instruction')
if attach_instruc:
print("deleted instruction")
attach_instruc.first().delete()
outfilename = "instruction.pdf"
outfiledir = 'media/uploads/'
outfilepath = os.path.join(outfiledir, outfilename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment