I have a Django view that looks like this:
def edit_view(request, pk)
# do something ...
messages.success(request, "Success!")
return redirect('index')
The view should redirect to "index" (like in the code above), but it should also, at the same time, open another (second) page in new tab.
How can this be achieved?