From 3308085838f520db49f606b72345a301c1cf2a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Tue, 28 Nov 2017 10:41:36 -0500 Subject: [PATCH] Fixed #28854 -- Replaced type(True) with bool in sqlite's SchemaEditor. --- django/db/backends/sqlite3/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/sqlite3/schema.py b/django/db/backends/sqlite3/schema.py index cbb018e9f7a..71f6c1c3030 100644 --- a/django/db/backends/sqlite3/schema.py +++ b/django/db/backends/sqlite3/schema.py @@ -37,7 +37,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor): except sqlite3.ProgrammingError: pass # Manual emulation of SQLite parameter quoting - if isinstance(value, type(True)): + if isinstance(value, bool): return str(int(value)) elif isinstance(value, (Decimal, float, int)): return str(value)