Dear Tosin

In my html template I used 
<form method="post">{% csrf_token %}
        {{ form.as_p }}
        <input type="submit" value="Assign"> 

and in my views.py in the corresponding view I have a section where I check 
if the method is POST:
if request.method == 'POST':

Later I do this:
var_list_of_checked_boxes = request.POST.getlist('var_selection')


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7f16fe5c-ea05-4444-8225-b88cb5d54b3d%40googlegroups.com.

Reply via email to