Navigation Menu

Skip to content

Commit

Permalink
Fixed #8214 -- Added back a stringification that was dropped during […
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
malcolmt committed Aug 23, 2008
1 parent a9f0ae7 commit 64ca36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/backends/sqlite3/base.py
Expand Up @@ -182,7 +182,7 @@ def _sqlite_extract(lookup_type, dt):
dt = util.typecast_timestamp(dt)
except (ValueError, TypeError):
return None
return getattr(dt, lookup_type)
return unicode(getattr(dt, lookup_type))

def _sqlite_date_trunc(lookup_type, dt):
try:
Expand Down

0 comments on commit 64ca36b

Please sign in to comment.