From 5290e33ea7fbc9dac54760b13056836cf327d5d3 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Tue, 12 Nov 2019 12:14:45 +0300 Subject: [PATCH] added preview image crop for model Product --- project/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/settings/base.py b/project/settings/base.py index 51920866..5e3017c7 100644 --- a/project/settings/base.py +++ b/project/settings/base.py @@ -357,7 +357,6 @@ THUMBNAIL_ALIASES = { 'news_editor_web': {'size': (940, 430), }, # при загрузке через контент эдитор 'news_editor_mobile': {'size': (343, 260), }, # через контент эдитор в мобильном браузерe 'avatar_comments_web': {'size': (116, 116), }, - 'product_preview': {'size': (300, 260), }, } } @@ -380,6 +379,7 @@ SORL_THUMBNAIL_ALIASES = { 'news_editor_web': {'geometry_string': '940x430', 'crop': 'center'}, 'news_editor_mobile': {'geometry_string': '343x260', 'crop': 'center'}, # при загрузке через контент эдитор 'avatar_comments_web': {'geometry_string': '116x116', 'crop': 'center'}, # через контент эдитор в мобильном браузерe + 'product_preview': {'geometry_string': '300x260', 'crop': 'center'}, }