﻿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
4742	Admin app insists on DateField input despite null=True	Jörg Höhle <Joerg-Cyril.Hoehle@…>	Adrian Holovaty	"Hi,

The admin application does not seem to honour nullable Date (or !DateTime) fields.
Here's a tiny test case for within the tutorial's poll application:

{{{
class Bugs(models.Model):
    suspend = models.DateField(null=True)
    name    = models.CharField(maxlength=30)

    class Admin:
        pass
}}}

The SQL looks good (postgresql):
{{{
id      | integer               | not null default nextval('polls_bugs_id_seq'::regclass)
suspend | date                  |
name    | character varying(30) | not null
}}}

The error says (in German) ""suspend: This field is required."", with or w/o Javascript enabled.
Using SVN from 2007-06-29.
At the API-level, there's no trouble. Bugs(name=""foo"").save() works.

I've observed the same error for nullable foreign key references. I should submit a distinct bug item.

Regards,
 Jörg Höhle"		closed	contrib.admin	dev		invalid			Unreviewed	0	0	0	0	0	0
