Ok below is my tables which has the "emailcomments" boolean field defined for it:
class Comment(models.Model): title = models.CharField(max_length=1,choices=TITLE_CHOICES) firstname = models.CharField(max_length=15) lastname = models.CharField(max_length=25) commenttext = models.TextField() emailcomments = models.BooleanField() emailaddress = models.CharField(max_length=30) commentdate = models.DateTimeField() and here is the way I have the "emailcomments" field defined on my form: emailcomments = forms.BooleanField(required=False, label='Send Comments To Your Email?', widget=forms.CheckboxInput(attrs={ 'name': 'emailcomments', 'id': 'emailcomments', 'type': 'checkbox' })) When I go to the screen and submit it then I get the error that the polls_comment table does not have a column named "emailcomments". I have another question to, kind of related to this table in particular. The table itself has 7 columns defined by me(not counting the id field which is automatically generated), and I was wondering how one codes the __unicode__ method(s) for a table like this? Do you just code the __unicode__ method multiple times, once for each column, and just vary the column data to be returned to be the name each column or how is it done? I appreciate any help you can provide. Thanks. On Feb 11, 9:32 am, Tom Evans <tevans...@googlemail.com> wrote: > On Fri, Feb 11, 2011 at 3:21 PM, hank23 <hversem...@stchas.edu> wrote: > > Still not sure why this is not working. I went back and set a value in > > my form field definition for the boolean field and the value I set is > > now coming back in the Traceback, whereas before the value None was > > being returned as the value for this field, regardless of whether I > > had it checked or not. So this makes me think I still don't have > > something setup right. Would it help if I posted my code somewhere so > > you could take a look at it? > > Can't hurt… > > Cheers > > Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.