I need to send some parameters when submitting a form in Django and I'm not sure how to do this.
Right now I have a form inside a page(Page A) allows filtering-- so my url for that page looks like this example.com/view-students?grade=5&teacher=smith
Inside that page I have a pop-up that allows a user to delete a student. When the user confirms that they want to delete a student, the form is submitted-- this directs to another view that takes care of the deleting. Then, I immediately redirect back to Page A.
The problem is that I need the parameters (?grade=5&teacher=smith) back in my url to redirect correctly. How do I go about doing this?