Re: Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread hank23
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.Te

Re: Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 3:21 PM, hank23 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 th

Re: Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread hank23
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.

Re: Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 2:23 PM, hank23 wrote: > I've been through the documentation and have been unable to find an > example of how to define a BooleanField when writing the code for a > table in my models.py file. Specifically are there any required > parameters when coding a BooleanField in a

Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread hank23
I've been through the documentation and have been unable to find an example of how to define a BooleanField when writing the code for a table in my models.py file. Specifically are there any required parameters when coding a BooleanField in a table definition? Thanks for the help. -- You received