Django переход между страницами с сохранением данных

Tell me how to implement, I just can’t figure it out, I’m still learning. Page1 opens and is created with forms.ModelForm +Meta. It has several inputs (text, selects, date) and 2 more inputs: input_hidden and input_text with the "select" button, as well as the "submit" button (sending to save to the database). By clicking on the "select" button, Page2 opens (like a reference book) with a table and a selection button, the desired row is selected in the table through the radiobutton and by pressing the selection button return to Page1 with data, so that the id of the selected element is recorded in input_hidden in value, and the text of the element string itself was written to input_text. At the same time, if before pressing the button on Page1 data were entered into some other inputs, then when returning from Page2, they retained their values. I can assume that it is possible to do something with saving data through a session, or some other simpler way to organize such a process.

Вернуться на верх