﻿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
24565	server_default option on model fields	Pacodastre	nobody	"I'll just be talking about PostgreSQL, since it's the only one i've been using, but it might also be possible with other Database Engines.

When you set a default on a field such as:

{{{
my_field = models.BooleanField(default=True)
}}}

This default is not applied to the PostgreSQL table:

{{{
           Table ""public.app_mytable""
     Column      |           Type           | Modifiers 
-----------------+--------------------------+-----------
 my_field        | boolean                  | not null
}}}

SQLAlchemy provides a [http://docs.sqlalchemy.org/en/latest/core/defaults.html#server-side-defaults server_default] option.

It would be nice to have such an option in Django too."	New feature	closed	Database layer (models, ORM)	1.8	Normal	duplicate		ribemont.francois@…	Unreviewed	0	0	0	0	0	0
