Commit b3fe063f authored by Gladys Forte's avatar Gladys Forte

Merge pull request #563 in RMS/api-main-service from gladys-dev2 to RMSv2

* commit 'd9385e08':
  print
parents f1b89774 d9385e08
......@@ -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