minecraft_manager/signals/pre_delete.py

3 lines
83 B
Python

def attachment_delete(sender, instance, **kwargs):
instance.file.delete(False)