django-versatileimagefield
django-versatileimagefield copied to clipboard
Deleting all created images for the image without extension fails
When trying to delete all created images with the use of delete_all_created_images
method I get the AssertionError
.
I find out that the sized images are created with extension jpg
when the base image is without extension. It causes an error during deletion as the algorithm is looking for a file with the same extension as the base one.
Steps to reproduce:
- Save in
VersatileImageField
file without extension in the name. - Create some thumbnails.
- Try to remove all created images with the use of
delete_all_created_images
. - You will get the
AssertionError
.