Skip to content

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

Add more clear product class labels

Krzysztof Wolski8c4b328ea779
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.py
index eff44288b2..c000c262d1 100644
--- a/saleor/dashboard/product/forms.py
+++ b/saleor/dashboard/product/forms.py
@@ -49,6 +49,13 @@ class ProductClassForm(forms.ModelForm):
class Meta:
model = ProductClass
exclude = []
+ labels = {
+ 'product_attributes': pgettext_lazy(
+ 'Product class form label',
+ 'Attributes specific for each variant'),
+ 'variant_attributes': pgettext_lazy(
+ 'Product class form label',
+ 'Attributes common for all variants')}
def clean(self):
data = super(ProductClassForm, self).clean()