Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add docstrings
akjanik41c9d9b898ce
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.pyindex 569d967341..e5131eae20 100644--- a/saleor/dashboard/product/forms.py+++ b/saleor/dashboard/product/forms.py@@ -14,6 +14,10 @@ from . import ProductBulkActionclass ProductClassSelectorForm(forms.Form):+ """+ Form that creates list of available product classes (types)+ in circle selection style.+ """product_cls = forms.ModelChoiceField(queryset=ProductClass.objects.all(),label=pgettext_lazy('Product class form label', 'Product type'),diff --git a/saleor/dashboard/product/views.py b/saleor/dashboard/product/views.pyindex 84750db39e..1239acf64c 100644--- a/saleor/dashboard/product/views.py+++ b/saleor/dashboard/product/views.py@@ -126,6 +126,9 @@ def product_list(request):@staff_member_required@permission_required('product.edit_product')def product_select_classes(request):+ """+ View for add product modal embedded in the product list view.+ """form = forms.ProductClassSelectorForm(request.POST or None)status = 200if form.is_valid():