Skip to content

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

Inherit fields to be excluded in child forms

Marcin Gębala911c176387f3
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.py
index 4757f32a4e..f605605952 100644
--- a/saleor/dashboard/product/forms.py
+++ b/saleor/dashboard/product/forms.py
@@ -26,11 +26,13 @@ class ProductForm(forms.ModelForm):
class ShirtForm(ProductForm):
class Meta:
model = Shirt
+ exclude = ProductForm.Meta.exclude
class BagForm(ProductForm):
class Meta:
model = Bag
+ exclude = ProductForm.Meta.exclude
ProductImageFormSet = inlineformset_factory(Product, ProductImage, extra=1)