Skip to content

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

Set label for cls_name field

Marcin Gębalafaee6e45594f
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.py
index 371f8a739f..98720f6bfb 100644
--- a/saleor/dashboard/product/forms.py
+++ b/saleor/dashboard/product/forms.py
@@ -1,9 +1,9 @@
from __future__ import unicode_literals
from django import forms
-from django.forms.formsets import formset_factory
from django.forms.models import inlineformset_factory
from django.forms.widgets import ClearableFileInput
+from django.utils.translation import pgettext_lazy
from ...product.models import (ProductImage, Product, ShirtVariant, BagVariant,
Shirt, Bag)
@@ -15,6 +15,7 @@ PRODUCT_CLASSES = {
class ProductClassForm(forms.Form):
cls_name = forms.ChoiceField(
+ label=pgettext_lazy('Product class form label', 'Product class'),
widget=forms.RadioSelect,
choices=[(name, name.capitalize()) for name in PRODUCT_CLASSES.keys()])