diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 15f7352a93..44bd221f98 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -33,7 +33,7 @@ def decoder(conv_func): return lambda s: conv_func(s.decode()) -Database.register_converter("bool", lambda s: s == b'1') +Database.register_converter("bool", b'1'.__eq__) Database.register_converter("time", decoder(parse_time)) Database.register_converter("date", decoder(parse_date)) Database.register_converter("datetime", decoder(parse_datetime))