diff --git a/core/migrations/0051_stock_system_attributes.py b/core/migrations/0051_stock_system_attributes.py index ffe61cf4..1ebd81b7 100644 --- a/core/migrations/0051_stock_system_attributes.py +++ b/core/migrations/0051_stock_system_attributes.py @@ -4,15 +4,14 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('core', '0050_remove_attribute_categories'), + ("core", "0050_remove_attribute_categories"), ] operations = [ migrations.AddField( - model_name='stock', - name='system_attributes', - field=models.JSONField(default=dict, verbose_name='system attributes'), + model_name="stock", + name="system_attributes", + field=models.JSONField(default=dict, verbose_name="system attributes"), ), ] diff --git a/core/sitemaps.py b/core/sitemaps.py index 24db6dfc..62f49c17 100644 --- a/core/sitemaps.py +++ b/core/sitemaps.py @@ -91,7 +91,16 @@ class CategorySitemap(SitemapLanguageMixin, Sitemap): # type: ignore [type-arg] limit = 10000 def items(self): - return Category.objects.filter(is_active=True).only("uuid", "name", "modified").order_by("-modified") + return ( + Category.objects.filter(is_active=True) + .only( + "uuid", + "name", + "modified", + "slug", + ) + .order_by("-modified") + ) def lastmod(self, obj): return obj.modified @@ -107,7 +116,16 @@ class BrandSitemap(SitemapLanguageMixin, Sitemap): # type: ignore [type-arg] limit = 10000 def items(self): - return Brand.objects.filter(is_active=True).only("uuid", "name", "modified").order_by("-modified") + return ( + Brand.objects.filter(is_active=True) + .only( + "uuid", + "name", + "modified", + "slug", + ) + .order_by("-modified") + ) def lastmod(self, obj): return obj.modified