Skip to content

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

Changed type() to isinstance()

Artur Smęt624316930772
diff --git a/saleor/product/forms.py b/saleor/product/forms.py
index f6f990c80f..fc42e0a985 100644
--- a/saleor/product/forms.py
+++ b/saleor/product/forms.py
@@ -30,8 +30,8 @@ class ShirtForm(AddToCartForm):
def get_form_class_for_product(product):
- if type(product) is Shirt:
+ if isinstance(product, Shirt):
return ShirtForm
- if type(product) is Bag:
+ if isinstance(product, Bag):
return BagForm
- raise NotImplemented()
\ No newline at end of file
+ raise NotImplementedError
\ No newline at end of file