#2231: Boolean fields don't honor 'default' parameter ---------------------------------------------------+------------------------ Reporter: russellm | Owner: russellm Status: reopened | Milestone: Component: Database layer (models, ORM) | Version: Resolution: | Keywords: boolean default Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Changes (by guettli):
* cc: [EMAIL PROTECTED] (added) * status: closed => reopened * resolution: invalid => Comment: It is repeatable: Current trunk {{{ cd django/trunk; svn update ... Aktualisiert zu Revision 9391. }}} {{{ django-admin startapp booltest # booltest/models.py from django.db import models class TestModel(models.Model): truth=models.BooleanField(default=False) }}} {{{ >django-admin.py sqlall booltest BEGIN; CREATE TABLE "booltest_testmodel" ( "id" serial NOT NULL PRIMARY KEY, "truth" boolean NOT NULL ) ; COMMIT; }}} DATABASE_ENGINE = 'postgresql_psycopg2' I expected: {{{ ... "truth" boolean NOT NULL DEFAULT FALSE }}} -- Ticket URL: <http://code.djangoproject.com/ticket/2231#comment:3> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---