I have 2 pages which allow to send user a private message.
On both of these pages I have a form which is processed by the same view e.g.
def send_message(request, pk)
# send this user a message
return redirect_to_page_which_sent_POST_request
So my goal is to use the same method to precess forms on both pages, and redirect back to the page.
I know I can do this by adding next
parameter to the form but are there any simpler ways?