title: Simple Django form / model save question
body: <p>I want to set the BooleanField <code>inuse</code> to True when I save the ModelForm (I'm using a form outside of the admin area) and I'm unsure how to do it.</p>
  
  <p>Models:</p>
  
  <pre><code>class Location(models.Model):
      place = models.CharField(max_length=100)
      inuse = models.BooleanField()
  
  class Booking(models.Model):
      name = models.CharField(max_length=100, verbose_name="Your name*:")
      place = models.ManyToManyField(Location, blank=True, null=True)
  </code></pre>
  
  <p>Forms:</p>
  
  <pre><code>class BookingForm(ModelForm):
  
      class Meta:
          model = Booking
  
          def save(self, commit=True):
              booking = super(BookingForm, self).save(commit=False)
              if commit:
                  booking.save()
                  self.save_m2m()
                  for location in booking.place.all():
                      location.inuse = True
                      print location #nothing prints
                      location.save()
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>def booking(request):
      form = BookingForm()
      if request.method == 'POST':
          form = BookingForm(request.POST)
          if form.is_valid():
              form.save()
          else:
              form = form
  
          return render_to_response('bookingform.html', {
                  'form': form,
              })
  </code></pre>
  
  <p>Updated to latest (see <a href="https://stackoverflow.com/questions/3652585/simple-django-form-model-save-question/3653016#3653016">Manoj Govindan's answer</a>).  It is still not updating <code>inuse</code> to True on submit / save.</p>