﻿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
555	DateTimeFields with auto_now and auto_now_add don't change in place	Andreas	Adrian Holovaty	"When saving an instance of a model that includes a DateTimeField with auto_now or auto_now_add, the automatically inserted date will not show up until the instance is reloaded from the db.

Model:
{{{
class Task(meta.Model):
    create_date = meta.DateTimeField(""Created on"", auto_now_add=True)
    title = meta.CharField(maxlength=200)
}}}

Behavior:
{{{
>>> from django.models.tasks import *
>>> t = Task(title=""task"")
>>> print 'presave', t.create_date
presave
>>> t.save()
>>> # Now t has a create_date
>>> print 'postsave', t.create_date
postsave
>>> # But it shows only in the database, not in the instance t.
}}}
"	defect	closed	Core (Other)		normal	fixed		eric@…	Accepted	1	0	0	0	0	0
