Commit c77d6523 authored by Gladys Forte's avatar Gladys Forte

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

* commit '8ed14162':
  file
parents 656a7c39 8ed14162
...@@ -504,9 +504,11 @@ def crhistory_log_bulk_delete_masterattach(queryset, entity, tbl, form_code, ...@@ -504,9 +504,11 @@ def crhistory_log_bulk_delete_masterattach(queryset, entity, tbl, form_code,
print(settings.MEDIA_ROOT) print(settings.MEDIA_ROOT)
# os.remove(r['url']) # os.remove(r['url'])
x = os.path.join(settings.MEDIA_ROOT, r['url'])
if os.path.exists(r['url']): print(x)
os.remove(r['url']) if os.path.exists(os.path.join(settings.MEDIA_ROOT, r['url'])):
print("file exists")
# os.remove(r['url'])
else: else:
print("The file does not exist") print("The file does not exist")
......
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