﻿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
34114	loaddata doesn't honor auto_now_add=True when these values are missing.	Roger	nobody	"In my model I have a model with a DateTime field (models.DateTimeField) defined as follows:

{{{
class MyModal(models.Model):
      key = models.CharField(max_length=20, blank=False, null=False)
      created_at = models.DateTimeField(blank=False, null=False, auto_now_add=True)
}}}

When loading the data via the fixtures and ''omitting'' the created_at field,  I would assume created_at will be set to ''now''

I'm getting a error:
{{{
Could not load app.MyModal(pk=None): (1048, ""Column 'created_at' cannot be null"")
}}}

YAML:

{{{
- model: app.mymodal
  fields:
    key: some text value
}}}





"	Bug	closed	Core (Management commands)	4.1	Normal	duplicate	fixtures loaddata yaml		Unreviewed	0	0	0	0	0	0
