How do I get multiple values from checkboxes in Django How do I get multiple values from checkboxes in Django python python

How do I get multiple values from checkboxes in Django


request.POST.getlist('recommendations')


if not request.POST.has_key(strName):      return ""      if request.POST[strName]:      return ','.join(request.POST.getlist(strName))            else:      return ""