﻿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
2192	[patch] DateField with unique=True breaks	anonymous	Adrian Holovaty	"The following model breaks, when I try to add an object in the admin.
{{{
from django.db import models

class Foo(models.Model):
    the_date = models.DateField('Watch me screw up', unique=True)

    class Admin:
        pass
}}}

With the following error:
{{{
AttributeError at /admin/foo/foo/add/
'str' object has no attribute 'strftime'
Request Method: 	POST
Request URL: 	http://localhost/admin/foo/foo/add/
Exception Type: 	AttributeError
Exception Value: 	'str' object has no attribute 'strftime'
Exception Location: 	/home/anonymous/django/latest/django/db/models/fields/__init__.py in get_db_prep_lookup, line 415
}}}"	defect	closed	contrib.admin	dev	major	fixed	DateField unique breaks		Unreviewed	1	0	0	0	0	0
