How do I pass an argument to a view without it showing up in the url?
This works fine:
Template
<a href="{% url 'jobs:change_contract_status' job.pk %}">{{ job|contract_status_button }}</a>
urls.py
path('change_contract_status/<int:pk>/', v.change_contract_status, name='change_contract_status'),
How do I make this work?
Template
<a href="{% url 'jobs:change_contract_status' job.pk return_path=request.path %}">{{ job|contract_status_button }}</a>
urls.py
????
I don’t want the second parameter to be a part of the url.
Alternatively is there another way to make a view return to the url it was called from?