﻿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
19431	Prepopulate modeladmin forms datetime fields using querystrings	aleray	pyriku	"Hi,

I wanted to prepopulate admin form datetime fields using querystrings like this:

{{{
http://localhost:8000/admin/app/model/add/?start=2013-06-01T20:00:00
}}}

But django wasn't really happy with me trying to pass a unicode object where it was expecting a datetime object:

{{{

AttributeError at /admin/app/model/add/
'unicode' object has no attribute 'date'
}}}


I came to editing contrib/admin/options.py, adding a special case for datetimefield. Attached is a very simple patch, let me know what you think...

Thanks,

Alex"	New feature	closed	contrib.admin	1.4	Normal	duplicate			Accepted	1	0	0	1	0	0
