title: Editing saved Multiple Checkbox selections in Django
body: <p>Whats the best way of performing the save because at the moment. When it comes to editing, I'm not getting the saved responses to populate the form. Other fields such as drop downs are fine. Is there somehthing I should do in the view to make this work? Here is my view:</p>
  
  <pre><code>def populateaboutme(request):
      extractlinkedindata(request)    
      if request.method == "POST":
          form = AboutMeForm(request.POST)
          if form.is_valid():
              today = datetime.date.today()
              currentYYMMDD = today.strftime('%Y-%m-%d')
              model_instance = form.save(commit=False)
              model_instance.save()
              request.session["AboutMe_id"] = model_instance.pk
              StoreImage(settings.STATIC_ROOT, str(request.session["fotoloc"]), '.jpg', str(request.session["AboutMe_id"]))
              return redirect('/dashboard/')
      else:
          myid = request.session["AboutMe_id"]
          if not myid:
              form = AboutMeForm()
          else:
              aboutme = AboutMe.objects.get(pk=int(myid))
              form = AboutMeForm(instance=aboutme)            
  
  
      return render(request, "aboutme.html", {'form': form})
  
  Here are the models:
  
      class AboutMe(models.Model):
          MyRelationshipIntent       = models.CharField(max_length=50)
  </code></pre>
  
  <p>and the forms:</p>
  
  <pre><code>class AboutMeForm(ModelForm):
          class Meta:     
              model = AboutMe
          exclude = () 
  
          MyRelationshipIntent = forms.MultipleChoiceField(choices=RELATIONSHIPINTENT_CHOICES,widget=forms.CheckboxSelectMultiple())
  
    RELATIONSHIPINTENT_CHOICES = (
     ('JL', 'Just Looking'),
     ('FL', 'Looking for friendship'),
     ('FN', 'Looking for fun'),
     ('FL', 'Looking for a relationship'),
  )
  </code></pre>