Skip to content

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

Remove missing sku and add attributes field

Marcin Gębala01146c81e575
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.py
index e5da3cafb8..1850143660 100644
--- a/saleor/dashboard/product/forms.py
+++ b/saleor/dashboard/product/forms.py
@@ -57,6 +57,7 @@ class ProductForm(forms.ModelForm):
self.fields['name'].widget.attrs['placeholder'] = pgettext_lazy('Product form labels', 'Give your awesome product a name')
self.fields['collection'].widget.attrs['placeholder'] = pgettext_lazy('Product form labels', 'e.g. Zombie apocalypse gear')
self.fields['categories'].widget.attrs['data-placeholder'] = pgettext_lazy('Product form labels', 'Search')
+ self.fields['attributes'].widget.attrs['data-placeholder'] = pgettext_lazy('Product form labels', 'Search')
class ProductVariantForm(forms.ModelForm):
diff --git a/saleor/dashboard/templates/dashboard/product/product_form.html b/saleor/dashboard/templates/dashboard/product/product_form.html
index 29da0e1adf..6f26ce90d6 100644
--- a/saleor/dashboard/templates/dashboard/product/product_form.html
+++ b/saleor/dashboard/templates/dashboard/product/product_form.html
@@ -75,8 +75,8 @@
{{ product_form.price|materializecss }}
{{ product_form.weight|materializecss }}
{{ product_form.collection|materializecss }}
- {{ product_form.sku|materializecss:"s12 m6" }}
{{ product_form.categories|materializecss:"input-field s12" }}
+ {{ product_form.attributes|materializecss:"input-field s12" }}
</div>
</div>