Skip to content

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

Cleanup

Marcin Gębala32f8914f3610
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.py
index b994051364..913d499a85 100644
--- a/saleor/dashboard/product/forms.py
+++ b/saleor/dashboard/product/forms.py
@@ -12,10 +12,6 @@ PRODUCT_CLASSES = {
}
-def get_verbose_name(model):
- return model._meta.verbose_name
-
-
class ProductClassForm(forms.Form):
product_cls = forms.ChoiceField(
label=pgettext_lazy('Product class form label', 'Product class'),
@@ -32,9 +28,6 @@ class StockForm(forms.ModelForm):
class Meta:
model = Stock
exclude = []
- widgets = {
- 'product': forms.HiddenInput()
- }
def __init__(self, *args, **kwargs):
product = kwargs.pop('product')