Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.6.x] Fixed #20984 -- Stopped decoding bytes in sqlite3 adapter on …

…Python 3

Thanks lvella at gmail.com for the report.
Backport of 1696376 from master.
  • Loading branch information...
commit 58157be5ad31b42a1dc73e357cfdece02fd0b6ee 1 parent 68eca2b
Claude Paroz authored August 29, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/backends/sqlite3/base.py
2  django/db/backends/sqlite3/base.py
@@ -78,7 +78,7 @@ def decoder(conv_func):
78 78
 
79 79
 Database.register_adapter(datetime.datetime, adapt_datetime_with_timezone_support)
80 80
 Database.register_adapter(decimal.Decimal, util.rev_typecast_decimal)
81  
-if Database.version_info >= (2, 4, 1):
  81
+if not six.PY3 and Database.version_info >= (2, 4, 1):
82 82
     # Starting in 2.4.1, the str type is not accepted anymore, therefore,
83 83
     # we convert all str objects to Unicode
84 84
     # As registering a adapter for a primitive type causes a small

0 notes on commit 58157be

Please sign in to comment.
Something went wrong with that request. Please try again.