How do I get multiple values from checkboxes in Django

Solution 1:

request.POST.getlist('recommendations')

Solution 2:

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