def cleanup_version(sender, instance, **kw): """On delete of the version object call the file delete and signals.""" if kw.get('raw'): return for file_ in instance.files.all(): cleanup_file(file_.__class__, file_)
def cleanup_version(sender, instance, **kw): """On delete of the version object call the file delete and signals.""" if kw.get("raw"): return for file_ in instance.files.all(): cleanup_file(file_.__class__, file_)