filter by location
This commit is contained in:
parent
9edd3fef18
commit
7c9d9e8ed1
|
|
@ -118,6 +118,6 @@ class SimilarListView(ProductSimilarView):
|
||||||
base_product = self.get_base_object()
|
base_product = self.get_base_object()
|
||||||
|
|
||||||
if base_product:
|
if base_product:
|
||||||
return qs.similar(base_product)[:settings.QUERY_OUTPUT_OBJECTS]
|
return qs.has_location().similar(base_product)[:settings.QUERY_OUTPUT_OBJECTS]
|
||||||
else:
|
else:
|
||||||
return qs.none()
|
return qs.none()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user