Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Use in dashboard same crop sizes as in the storefront

weronka7cbbe0692ee4
diff --git a/saleor/settings.py b/saleor/settings.py
index 0485d90c39..a537bf220b 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -303,8 +303,6 @@ MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'
VERSATILEIMAGEFIELD_RENDITION_KEY_SETS = {
'defaults': [
- ('list_view', 'crop__100x100'),
- ('dashboard', 'crop__400x400'),
('product_gallery', 'crop__540x540'),
('product_gallery_2x', 'crop__1080x1080'),
('product_small', 'crop__60x60'),
diff --git a/saleor/static/images/product-image-placeholder-small.png b/saleor/static/images/product-image-placeholder-small.png
deleted file mode 100644
index adc77256b7..0000000000
Binary files a/saleor/static/images/product-image-placeholder-small.png and /dev/null differ
diff --git a/saleor/static/images/product-image-placeholder.png b/saleor/static/images/product-image-placeholder.png
deleted file mode 100644
index 8854d42df7..0000000000
Binary files a/saleor/static/images/product-image-placeholder.png and /dev/null differ
diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.html
index fbb69fe458..fa6e1db100 100644
--- a/templates/dashboard/product/list.html
+++ b/templates/dashboard/product/list.html
@@ -3,6 +3,7 @@
{% load prices_i18n %}
{% load materializecss %}
{% load staticfiles %}
+{% load get_thumbnail from product_images %}
{% block title %}
{% trans "Products" context "Dashboard products list" %} - {{ block.super }}
diff --git a/templates/dashboard/product/modal_product_confirm_delete.html b/templates/dashboard/product/modal_product_confirm_delete.html
index 4795f9b9a0..e90615d345 100644
--- a/templates/dashboard/product/modal_product_confirm_delete.html
+++ b/templates/dashboard/product/modal_product_confirm_delete.html
@@ -1,6 +1,7 @@
{% load i18n %}
{% load prices_i18n %}
{% load staticfiles %}
+{% load get_thumbnail from product_images %}
<form action="{% url "dashboard:product-delete" pk=product.pk %}" method="post" novalidate>
{% csrf_token %}
diff --git a/templates/dashboard/product/product_confirm_delete.html b/templates/dashboard/product/product_confirm_delete.html
index a1080eac3a..505ca7740c 100644
--- a/templates/dashboard/product/product_confirm_delete.html
+++ b/templates/dashboard/product/product_confirm_delete.html
@@ -2,6 +2,7 @@
{% load i18n %}
{% load prices_i18n %}
{% load staticfiles %}
+{% load get_thumbnail from product_images %}
{% block title %}
{% trans "Delete" context "Dashboard delete action" %} {{ product }} - {{ block.super }}