Features: 1) Add filter to exclude products with null stocks and inactive vendors in sitemaps query;
Fixes: None; Extra: None;
This commit is contained in:
parent
b6983b63a3
commit
f10e5f96eb
1 changed files with 2 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ class ProductSitemap(Sitemap):
|
|||
is_active=True,
|
||||
brand__is_active=True,
|
||||
category__is_active=True,
|
||||
stocks__isnull=False,
|
||||
stocks__vendor__is_active=True,
|
||||
)
|
||||
.only("uuid", "name", "modified", "slug")
|
||||
.order_by("-modified")
|
||||
|
|
|
|||
Loading…
Reference in a new issue