id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 4800,Field's default value in model isn't passed to SQL,Michal Ludvig ,Adrian Holovaty,"I have a model roughly like this: {{{ class Foo(models.Model): blah = models.BooleanField(default=True) }}} I expect ""syncdb"" to create SQL field with the default value set (this is for mysql): {{{ `blah` tinyint(1) NOT NULL DEFAULT '1', }}} Unfortunately it doesn't, the ""DEFAULT '1'"" part is missing. Apparently there is no checking for 'field.default' value in django/core/management.py:_get_sql_model_create() Attached patch adds this functionality.",,closed,"Database layer (models, ORM)",dev,,duplicate,,,Design decision needed,1,0,0,1,0,0