Skip to content

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

Remove get_full_absolute_url functions

Pacu27c9f8d280096
diff --git a/saleor/product/models.py b/saleor/product/models.py
index 34f7a3106f..ef42f4a600 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -56,11 +56,6 @@ class Category(MPTTModel):
kwargs={'path': self.get_full_path(ancestors),
'category_id': self.id})
- def get_full_absolute_url(self, ancestors=None):
- return build_absolute_uri(
- self.get_absolute_url(ancestors=ancestors)
- )
-
def get_full_path(self, ancestors=None):
if not self.parent_id:
return self.slug
@@ -170,9 +165,6 @@ class Product(models.Model, ItemRange):
'product:details',
kwargs={'slug': self.get_slug(), 'product_id': self.id})
- def get_full_absolute_url(self):
- return build_absolute_uri(self.get_absolute_url())
-
def get_slug(self):
return slugify(smart_text(unidecode(self.name)))