Skip to content

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

Improve label description

akjanik73cf17fa8601
diff --git a/saleor/dashboard/collection/forms.py b/saleor/dashboard/collection/forms.py
index 921ba0046c..62f371c331 100644
--- a/saleor/dashboard/collection/forms.py
+++ b/saleor/dashboard/collection/forms.py
@@ -30,7 +30,6 @@ class CollectionForm(forms.ModelForm):
if self.instance.pk:
self.fields['products'].set_initial(self.instance.products.all())
-
def save(self, commit=True):
self.instance.slug = slugify(unidecode(self.instance.name))
super().save(commit=commit)
diff --git a/saleor/dashboard/forms.py b/saleor/dashboard/forms.py
index ad3ff3ce6a..758d77fb4b 100644
--- a/saleor/dashboard/forms.py
+++ b/saleor/dashboard/forms.py
@@ -57,7 +57,7 @@ class AjaxSelect2MultipleChoiceField(forms.MultipleChoiceField):
self.widget.attrs['multiple'] = True
def to_python(self, value):
- # Allow to set empty list for non required case
+ # Allow to set empty field
if value == []:
return value
if value in self.empty_values:
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.py
index 4206bc0468..578cd20d6c 100644
--- a/saleor/dashboard/product/forms.py
+++ b/saleor/dashboard/product/forms.py
@@ -128,7 +128,7 @@ class ProductForm(forms.ModelForm):
'is_featured': pgettext_lazy(
'Featured product toggle', 'Feature this product on homepage'),
'collections': pgettext_lazy(
- 'Include in collection select', 'Collections')}
+ 'Add to collection select', 'Collections')}
collections = forms.ModelMultipleChoiceField(
required=False, queryset=Collection.objects.all())