On May 15, 2011, at 2:15 PM, Greg Donald wrote: > How do I set a default for a BooleanField() ? > > I tried > > foo = models.BooleanField( default=False ) > > > but that only produces > > foo boolean NOT NULL,
The default= parameter in Django doesn't generate a DEFAULT in the SQL; the default is implemented in the Django ORM. -- -- Christophe Pettus [email protected] -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

