diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 0ee5e069b2..64da52e45f 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -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: