Show More
@@ -127,6 +127,6 b' def delete_file(instance, **kwargs):' | |||
|
127 | 127 | if instance.mimetype in FILE_TYPES_IMAGE: |
|
128 | 128 | for size in THUMB_SIZES: |
|
129 | 129 | file_name_parts = instance.file.name.split('.') |
|
130 |
thumb_file = MEDIA_ROOT + '{}.{}x{}.{}'.format(file_name_parts[0], |
|
|
130 | thumb_file = MEDIA_ROOT + '{}.{}x{}.{}'.format(file_name_parts[0], size[0], size[1], file_name_parts[1]) | |
|
131 | 131 | os.remove(thumb_file) |
|
132 | 132 |
General Comments 0
You need to be logged in to leave comments.
Login now