Fixed #8214 -- Added back a stringification that was dropped during [8131].

This restores filtering on dates in the admin, for example. Thanks to akfarrell
and a small team of workers at the Portland Sprint.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-08-23 18:01:16 +00:00
parent a9f0ae706a
commit 64ca36bf08
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ def _sqlite_extract(lookup_type, dt):
dt = util.typecast_timestamp(dt) dt = util.typecast_timestamp(dt)
except (ValueError, TypeError): except (ValueError, TypeError):
return None return None
return getattr(dt, lookup_type) return unicode(getattr(dt, lookup_type))
def _sqlite_date_trunc(lookup_type, dt): def _sqlite_date_trunc(lookup_type, dt):
try: try: