﻿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
3593	Field default values don't seem to work as expected	brosner@…	Adrian Holovaty	"If I have the given model in an app:

{{{
class Products(models.Model):
	name = models.CharField(maxlength=150)
	list_price = models.CharField(max_digits=10, decimal_places=2, default=0.00, blank=True)
	price = models.CharField(max_digits=10, decimal_places=2)
	
	class Admin:
		pass
}}}

When adding a new product through the admin site you will get an IntegrityError saying that list_price may not be NULL.  I have tested this with MySQL and SQLite and both result in this error.  While I could change the value on the fly before saving the object, but the default parameter would seem like it should handle that for me."		closed	Database layer (models, ORM)	dev		invalid			Unreviewed	0	0	0	0	0	0
