Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Changed type() to isinstance()
Artur Smęt624316930772
diff --git a/saleor/product/forms.py b/saleor/product/forms.pyindex 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