title: Google App Engine Django BooleanProperty not binding to table
body: <p>I have the following, </p>
  
  <pre><code>class Company(db.Model):
      companyvalid = db.BooleanProperty(required=True)
  
  class AddCompanyForm(djangoforms.ModelForm):
      class Meta:
              model = Company
          exclude = ['companyentrytime']
          exclude = ['companylatlong']
  </code></pre>
  
  <p>however I cannot get the o/p from the Django stored in the database. I can also only add a record when the checkbox is checked, but this is not reflected in the underlying table when saving the record. What is the smartest way to do this? Thanks</p>
  
  <pre><code>class AddCompanyCategoriesHandler(webapp.RequestHandler):
      def get(self):
          memcache.flush_all()
          form_requirements = AddCompanyCategoriesForm()
          path = os.path.join(os.path.dirname(__file__), 'addcompanycat.html')
          self.response.out.write(template.render(path, {'form': form_requirements}))
  
  def post(self):
          form_requirements = AddCompanyCategoriesForm(data=self.request.POST)
          if form_requirements.is_valid():
                  myname = form_requirements.clean_data['categoryname']
                  entity = form_requirements.save(commit=False)   
                  entity.put()
  </code></pre>
  
  <p>=========================================================================================</p>
  
  <p>I'm trying to use the BooleanField, but this fails to work, with the server giving out a 504 error. Here is my model. I've been experimenting with this BooleanFields format, but I'm not sure how this relates to my model. My model is</p>
  
  <pre><code>class Company(db.Model):
      companyurl = db.StringProperty(required=True)
      companyname = db.StringProperty(required=True)
      companydesc = db.TextProperty(required=True)
      companyaddress = db.PostalAddressProperty(required=True)
      companypostcode = db.StringProperty(required=True)
      companyemail = db.EmailProperty(required=True)
      companycountry = db.StringProperty(required=True)
      companyvalid = db.BooleanProperty()
      #companyvalid = db.BooleanField(required=True, label="Check this")
      companyentrytime = db.DateTimeProperty(auto_now_add=True)
      companylatlong = db.GeoPtProperty()
      @property
      def catname(self):
          return self.companycategory.name
      companycategory = db.ReferenceProperty(CompanyCategory, collection_name='compcategory')
  </code></pre>
  
  <p>and the following </p>
  
  <pre><code>class AddCompanyForm(djangoforms.ModelForm):
      class Meta:
          model = Company
          #companyvalid = model.BooleanField(default=False)
          exclude = ['companyentrytime']
          exclude = ['companylatlong']
  </code></pre>
  
  <p>So my question is that if I have to use this BooleanField, how should I put it in the AddCompanyForm and should there be an entry in the model?</p>