Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Include images reorder url in context
Marcin Gębala30076b72b908
diff --git a/saleor/dashboard/product/views.py b/saleor/dashboard/product/views.pyindex 6869fa8ac8..5575a13a98 100644--- a/saleor/dashboard/product/views.py+++ b/saleor/dashboard/product/views.py@@ -58,6 +58,10 @@ def product_details(request, pk=None, cls_name=None):'please correct the errors below'))ctx = {'title': title, 'product': product, 'images': images}ctx.update(forms)+ if pk:+ images_reorder_url = reverse_lazy('dashboard:product-images-reorder',+ kwargs={'product_pk': pk})+ ctx['images_reorder_url'] = images_reorder_urlreturn TemplateResponse(request, 'dashboard/product/product_form.html', ctx)