How to prevent Django form being reset after clicking page buttons
问题 I have a Django form that takes input values from users. The values are then used in making query to a table ResourceBase , which finally returns a list of filtered results. Since the results might be a long list, I added a pagination function with "Prev" and "Next" buttons. My problem is that when I click "Prev" or "Next" button, the form gets restored into default values. And all returned results are all gone. How do I prevent this from happening? I think the form gets reset because of