From 0d11f7d0285b2dca7c7539049d01eafd8da6b99e Mon Sep 17 00:00:00 2001 From: michal Date: Fri, 6 Oct 2017 13:57:47 +0200 Subject: Rename private methods in ProductFilter --- saleor/product/filters.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/saleor/product/filters.py b/saleor/product/filters.py index 32f4cec2..0773fca3 100644 --- a/saleor/product/filters.py +++ b/saleor/product/filters.py @@ -26,8 +26,8 @@ class ProductFilter(FilterSet): super(ProductFilter, self).__init__(*args, **kwargs) self.product_attributes, self.variant_attributes = ( self._get_attributes()) - self.filters.update(self._add_product_attributes_filters()) - self.filters.update(self._add_product_variants_attributes_filters()) + self.filters.update(self._get_product_attributes_filters()) + self.filters.update(self._get_product_variants_attributes_filters()) self.filters = OrderedDict(sorted(self.filters.items())) sort_by = OrderingFilter( @@ -57,7 +57,7 @@ class ProductFilter(FilterSet): .distinct()) return product_attributes, variant_attributes - def _add_product_attributes_filters(self): + def _get_product_attributes_filters(self): filters = {} for attribute in self.product_attributes: filters[attribute.slug] = MultipleChoiceFilter( @@ -67,7 +67,7 @@ class ProductFilter(FilterSet): choices=self._get_attribute_choices(attribute)) return filters - def _add_product_variants_attributes_filters(self): + def _get_product_variants_attributes_filters(self): filters = {} for attribute in self.variant_attributes: filters[attribute.slug] = MultipleChoiceFilter( -- cgit v1.2.3