From f3eb1cfb58084bd2c547e64a217cb6da0ddfb0df Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Fri, 21 Dec 2018 18:06:16 -0500 Subject: [PATCH] Refs #29928 -- Corrected SQLite's can_defer_constraint_checks feature flag. --- django/db/backends/sqlite3/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/sqlite3/features.py b/django/db/backends/sqlite3/features.py index be11c047cf..e315c86712 100644 --- a/django/db/backends/sqlite3/features.py +++ b/django/db/backends/sqlite3/features.py @@ -40,7 +40,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): supports_parentheses_in_compound = False # Deferred constraint checks can be emulated on SQLite < 3.20 but not in a # reasonably performant way. - can_defer_constraint_checks = Database.version_info >= (3, 20, 0) + can_defer_constraint_checks = Database.sqlite_version_info >= (3, 20, 0) @cached_property def supports_stddev(self):