Skip to content

Commit

Permalink
Merge pull request #205 from gcivil-nyu-org/ZhuopuWang
Browse files Browse the repository at this point in the history
Bug fix for absolute path
  • Loading branch information
himanshu1196 committed Nov 29, 2023
2 parents ab974cd + 530d234 commit 5297118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rrapp/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def delete_old_file_on_update(sender, instance, **kwargs):
def delete_file_pre_delete(sender, instance, **kwargs):
print(instance.image.name)
if instance.image:
default_storage.delete(instance.image.path)
default_storage.delete(instance.image.name)

0 comments on commit 5297118

Please sign in to comment.