Skip to content

Remove source on ImageFieldFile.delete() #124

@DeD1rk

Description

@DeD1rk

ImageFieldFile.delete nicely removes all thumbnails, but it leaves behind the Source object.

This is a problem when later, a file with the same name is uploaded, and in general it's not hygienic. We can safely delete it anyway as the file itself is also being deleted, so the Source becomes meaningless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions