[Answer]-Passing variable from template to views function in django

1👍

These values are passed back to the view in a GET request. You can access them in your views.table function by:

if request.GET:
    values = request.GET
    print values

Keep in mind that the value attribute in the option tags in your template should be unique so that you can differentiate these variables in the GET request.

Leave a comment