﻿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
30217	Admin form for DateTimeField does should require both fields	wKavey	nobody	"The default Admin form for a DateTimeField seems to be a split form, with separate inputs for both the Date and Time segments. If one provides a Date, but no Time, the form produces a value of 'None' and raises no ValidationErrors.

I would expect at least a ValidationError indicating that one must provide both a Date and a Time. There is already one thrown if no values at all are provided.

I would imaging this could involve setting ""require_all_fields=True"" on the SplitDateTimeField, however I am not sure.

Somewhat related to https://code.djangoproject.com/ticket/9721

I hit this because I have a custom validation applied in my model's clean() method (datetime_1 <= datetime_2). This is also called in my model's save() method (self.full_clean()). When, using the admin interface, I only specify a Date and no Time, I get an error because one, or both, of my datetimes are None."	New feature	closed	contrib.admin	2.1	Normal	needsinfo	admin field validation		Unreviewed	0	0	0	0	0	1
