Ejemplo n.º 1
0
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_)
Ejemplo n.º 2
0
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_)