|
|
@@ -98,6 +98,9 @@ def get_product_base_queryset():
|
|
98
|
98
|
'product_options',
|
|
99
|
99
|
'product_class__options',
|
|
100
|
100
|
'stockrecord',
|
|
|
101
|
+ 'stockrecord__product',
|
|
|
102
|
+ 'stockrecord__product__product_class',
|
|
|
103
|
+ 'stockrecord__partner',
|
|
101
|
104
|
'images',
|
|
102
|
105
|
).all()
|
|
103
|
106
|
|
|
|
@@ -111,6 +114,9 @@ class ProductCategoryView(ListView):
|
|
111
|
114
|
paginate_by = 20
|
|
112
|
115
|
|
|
113
|
116
|
def get_categories(self):
|
|
|
117
|
+ """
|
|
|
118
|
+ Return a list of the current category and it's ancestors
|
|
|
119
|
+ """
|
|
114
|
120
|
slug = self.kwargs['category_slug']
|
|
115
|
121
|
try:
|
|
116
|
122
|
category = Category.objects.get(slug=slug)
|