﻿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
7390	auto_now_add bug	Jeff Anderson	nobody	"Consider the following model:

class Ticket(Model):
    name=SlugField()
    
class Comment(Models):
    name=SlugField()
    ticket = models.ForeignKey(Ticket, edit_inline=TABULAR, num_in_admin=1)
    timestamp = DateTimeField(auto_now_add=True)

When I edit a Ticket that has one or more comments already, when I hit save I get the error: myproj_comment.timestamp may not be NULL

It appears that the inline editing in the admin doesn't honor the ""auto_now_add=True"" option. I can edit or create a comment directly without problem.

The workaround I've done is to simply override the save() method and set timestamp to now() if it doesn't exist.
"		closed	contrib.admin	dev		invalid			Unreviewed	0	0	0	0	0	0
