Skip to content

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

Fix bug where page is not redirecting to staff list after staff detail is updated

Unknown9095c01ae5bb
diff --git a/saleor/dashboard/staff/views.py b/saleor/dashboard/staff/views.py
index 3f32041523..b6b1560888 100644
--- a/saleor/dashboard/staff/views.py
+++ b/saleor/dashboard/staff/views.py
@@ -42,7 +42,7 @@ def staff_details(request, pk):
msg = pgettext_lazy(
'Dashboard message', 'Updated staff member %s') % (staff_member,)
messages.success(request, msg)
- redirect('dashboard:staff-list')
+ return redirect('dashboard:staff-list')
ctx = {'staff_member': staff_member, 'form': form}
return TemplateResponse(request, 'dashboard/staff/detail.html', ctx)