Commit 83eaf188 authored by Gladys Forte's avatar Gladys Forte

print path

parent d8ba964b
...@@ -496,6 +496,8 @@ def crhistory_log_bulk_delete_masterattach(queryset, entity, tbl, form_code, ...@@ -496,6 +496,8 @@ def crhistory_log_bulk_delete_masterattach(queryset, entity, tbl, form_code,
tbl.objects.filter(id=test['id']).delete() tbl.objects.filter(id=test['id']).delete()
models.MasterAttachment.objects.filter( models.MasterAttachment.objects.filter(
id=test['file_upload']).delete() id=test['file_upload']).delete()
print(settings.MEDIA_ROOT)
# os.remove(os.path.join(settings.MEDIA_ROOT, self.url.name))
return True return True
except IntegrityError as exc: except IntegrityError as exc:
raise APIException(detail=exc) raise APIException(detail=exc)
......
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