Skip to content

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

Clean up after rebasing

Pacu2673c7dc36e87
diff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.py
index ab3849ed65..92f383cdfa 100644
--- a/saleor/graphql/product/types.py
+++ b/saleor/graphql/product/types.py
@@ -3,12 +3,7 @@ from graphene import relay
from graphene_django.filter import DjangoFilterConnectionField
from ...product import models
-<<<<<<< HEAD
-from ...product.templatetags.product_images import (
- get_thumbnail, product_first_image)
-=======
from ...product.templatetags.product_images import get_thumbnail
->>>>>>> Remove duplicated product_first_image templatetag
from ...product.utils import products_with_details
from ...product.utils.availability import get_availability
from ...product.utils.costs import (
diff --git a/saleor/product/templatetags/product_images.py b/saleor/product/templatetags/product_images.py
index b192caaccf..32057fe526 100644
--- a/saleor/product/templatetags/product_images.py
+++ b/saleor/product/templatetags/product_images.py
@@ -91,4 +91,4 @@ def get_thumbnail(instance, size, method='crop'):
extra={'instance': instance, 'size': size})
else:
return thumbnail.url
- return static(choose_placeholder(size))
+ return static(choose_placeholder('%sx%s' % (size, size)))
diff --git a/templates/dashboard/search/results.html b/templates/dashboard/search/results.html
index 7ee31de994..6a3652a510 100644
--- a/templates/dashboard/search/results.html
+++ b/templates/dashboard/search/results.html
@@ -27,13 +27,8 @@
{% for product in products %}
<li class="collection-item avatar list-item">
<a href="{% url 'dashboard:product-details' pk=product.pk %}">
-<<<<<<< HEAD
- <img src="{% product_first_image product size=60 method="crop" %}"
- srcset="{% product_first_image product size=60 method="crop" %} 1x, {% product_first_image product size=120 method="crop" %} 2x"
-=======
- <img src="{% get_thumbnail product.get_first_image size="60x60" method="crop" %}"
- srcset="{% get_thumbnail product.get_first_image size="60x60" method="crop" %} 1x, {% get_thumbnail product.get_first_image size="120x120" method="crop" %} 2x"
->>>>>>> Remove duplicated product_first_image templatetag
+ <img src="{% get_thumbnail product.get_first_image size=60 method="crop" %}"
+ srcset="{% get_thumbnail product.get_first_image size=60 method="crop" %} 1x, {% get_thumbnail product.get_first_image size=120 method="crop" %} 2x"
class="circle" alt="{{ product.name }}">
<span class="list-item-name">
{{ product.name }}