﻿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
14951	Unique_for_[date|month|year] fails when the DateField is empty	Ben Spaulding	nobody	"Using the following fields on a model:

{{{
slug = models.SlugField(unique_for_date='pubdate')
pubdate = models.DateTimeField(blank=True, null=True)
}}}

Leads to the following error when `pubdate` is left empty and one tries to save the model instance:

{{{
Django Version:	1.3 alpha 1
Exception Type:	AttributeError
Exception Value:	'NoneType' object has no attribute 'day'
Exception Location:	/Users/…/django/db/models/base.py in _perform_date_checks, line 744
}}}

(It appears that this issue was addressed years ago, but regressions happen. See #2155.)
"		closed	Database layer (models, ORM)	1.3-alpha		fixed	blocker, regression		Accepted	1	0	0	0	0	0
