Commit 8ed14162 authored by Gladys Forte's avatar Gladys Forte

file

parent bd9cdc40
...@@ -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