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.
When trying to delete all created images with the use of
delete_all_created_imagesmethod I get theAssertionError.I find out that the sized images are created with extension
jpgwhen 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:
VersatileImageFieldfile without extension in the name.delete_all_created_images.AssertionError.