[Django]-Get the list of checkbox post in django views

39👍

Use request.POST.getlist:

Returns the data with the requested key, as a Python list. Returns an empty list if the key doesn’t exist and no default value was provided. It’s guaranteed to return a list of some sort unless the default value provided is not a list.

Leave a comment