Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Redirect to variant form after creating product
Marcin Gębala08570b2a9de5
diff --git a/saleor/dashboard/product/views.py b/saleor/dashboard/product/views.pyindex e770281510..ca34863201 100644--- a/saleor/dashboard/product/views.py+++ b/saleor/dashboard/product/views.py@@ -33,7 +33,7 @@ def product_create(request):product = form.save()msg = _('Added product %s') % productmessages.success(request, msg)- return redirect('dashboard:product-update', pk=product.pk)+ return redirect('dashboard:variant-add', product_pk=product.pk)elif form.errors:messages.error(request, _('Your submitted data was not valid - ''please correct the errors below'))