Skip to content

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

Redirect to variant form after creating product

Marcin Gębala08570b2a9de5
diff --git a/saleor/dashboard/product/views.py b/saleor/dashboard/product/views.py
index 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') % product
messages.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'))