Removed 'the mother of all debugging' again. :D

This commit is contained in:
2020-12-25 19:50:34 +01:00
parent 224eb87d76
commit b876435d8c
2 changed files with 0 additions and 4 deletions

View File

@@ -95,7 +95,6 @@ def auto_delete_file_on_change(sender, instance, **kwargs):
old_file = Explorer.objects.get(pk=instance.pk).profile_image
except Explorer.DoesNotExist:
return False
print("Deleting:", old_file)
new_file = instance.profile_image
if not old_file == new_file:
old_file.delete(save=False)