Skip to content

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

Redundant variable remove

Mira Szewczykd3647d2f86e4
diff --git a/saleor/dashboard/product/views.py b/saleor/dashboard/product/views.py
index c47433e93b..373ada0e96 100644
--- a/saleor/dashboard/product/views.py
+++ b/saleor/dashboard/product/views.py
@@ -292,7 +292,7 @@ def stock_location_edit(request, location_pk=None):
location = StockLocation()
form = forms.StockLocationForm(request.POST or None, instance=location)
if form.is_valid():
- location = form.save()
+ form.save()
msg = _('Updated location') if location_pk else _('Added location')
messages.success(request, msg)
return redirect('dashboard:product-stock-location-list')