how to do for selected item do not change after updating page or changing page?

Hello, I need to make a select field so that the option I choose remains fixed even when changing pages or updating the page. So everything on the page will be filtered by the selected option. Does anyone have any tips on how to do?


I’m not sure if this is the best solution with current tools and best practices, but the way I’ve solved requirements like these in the past is via javascript and the sessionStorage object.

You’d capture the selected value and save it in sessionStorage and that way are able to retrieve it in any subsequent page loads to be included in requests for filtering.

If you’re only using django templates with no javascript, not sure what the best option is.