Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Rename i18nSitemap to more pythonic way
Pacu2162c357f4177
diff --git a/saleor/core/sitemaps.py b/saleor/core/sitemaps.pyindex e7923f9cc2..c242646b17 100644--- a/saleor/core/sitemaps.py+++ b/saleor/core/sitemaps.py@@ -5,32 +5,32 @@ from ..page.models import Pagefrom ..product.models import Category, Collection, Product-class i18nSitemap(Sitemap):+class I18nSitemap(Sitemap):protocol = 'https' if settings.ENABLE_SSL else 'http'i18n = True-class ProductSitemap(i18nSitemap):+class ProductSitemap(I18nSitemap):def items(self):return Product.objects.only('id', 'name').order_by('-id')-class CategorySitemap(i18nSitemap):+class CategorySitemap(I18nSitemap):def items(self):categories = Category.objects.all().order_by('id')return categories.only('id', 'name', 'slug')-class CollectionSitemap(i18nSitemap):+class CollectionSitemap(I18nSitemap):def items(self):collections = Collection.objects.all().order_by('id')return collections.only('id', 'name', 'slug')-class PageSitemap(i18nSitemap):+class PageSitemap(I18nSitemap):def items(self):posts = Page.objects.public()