diff --git a/shop/static/shop/images/products/PC005/blanc-bleu-sport/skirt_logo.png b/shop/static/shop/images/products/PC005/blanc-bleu-sport/skirt-logo.png similarity index 100% rename from shop/static/shop/images/products/PC005/blanc-bleu-sport/skirt_logo.png rename to shop/static/shop/images/products/PC005/blanc-bleu-sport/skirt-logo.png diff --git a/shop/templatetags/shop_extras.py b/shop/templatetags/shop_extras.py index 9938501..ddc0b8a 100644 --- a/shop/templatetags/shop_extras.py +++ b/shop/templatetags/shop_extras.py @@ -38,7 +38,8 @@ def color_images_url(default_image, color_name, sku): files.sort(key=lambda x: ( 1 if '-B_' in x else 2 if '-S_' in x else - 0 + 0 if '-logo' in x else + 1 )) return [f'{base_path}{color_folder}/{file}' for file in files]