Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove source on ImageFieldFile.delete() #124

Open
DeD1rk opened this issue Nov 9, 2023 · 0 comments
Open

Remove source on ImageFieldFile.delete() #124

DeD1rk opened this issue Nov 9, 2023 · 0 comments

Comments

@DeD1rk
Copy link

DeD1rk commented Nov 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant