When I define a model:
>>> class Test(models.Model):
>>> ... some other fields ...
>>> bool_field = models.BooleanField(default=True)
Django generate next sql:
CREATE TABLE `test_test` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
... some other fields ...
`bool_field` bool NOT NULL
It doesn't generate the DEFAULT "1" part...
First I thought that the manipulator will authomaticly set this to True
on save, but it doesn't.
Is this u bug?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---