/catalog/catalog_slug/tag_slug1/tag_slug2/tag_slug3
для фильтрации элементов каталога по тегамre_path(r'^catalog/(?P<catalog_slug>\w+)/(?P<tag_slugs>(?:\w+/)+)', ...)
TypeError: get() got multiple values for argument 'catalog_slug'
class CategorySeoTagsView(APIView):
def get(self, catalog_slug, tag_slugs):
pass
class Category
...
def get_absolute_url(self):
return reverse(
'catalog:product_list_by_category',
kwargs={'category_slug': self.slug}
)
class Product
...
def get_absolute_url(self):
return reverse(
'catalog:product_detail',
kwargs={
'product_slug': self.slug,
'category_slug': self.category.slug
}
)