Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use in dashboard same crop sizes as in the storefront
weronka7cbbe0692ee4
diff --git a/saleor/settings.py b/saleor/settings.pyindex 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.pngdeleted file mode 100644index adc77256b7..0000000000Binary files a/saleor/static/images/product-image-placeholder-small.png and /dev/null differdiff --git a/saleor/static/images/product-image-placeholder.png b/saleor/static/images/product-image-placeholder.pngdeleted file mode 100644index 8854d42df7..0000000000Binary files a/saleor/static/images/product-image-placeholder.png and /dev/null differdiff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.htmlindex 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.htmlindex 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.htmlindex 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 }}