Skip to content

Remove source on ImageFieldFile.delete() #124

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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