summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-01-10 17:24:16 +0100
committerTim Graham <timograham@gmail.com>2017-07-11 09:07:31 -0400
commit169c3b3e07829d9ffa409b6eb5c1094d8ef918a8 (patch)
tree1965a301bae8137053f2b3b24947775e2465aed9 /tests
parent29769a9942b08c86397692fa164396a670a4e1ec (diff)
Fixed #14204 -- Enforced SQLite foreign key constraints.
Thanks Tim Graham for contributing to the patch and Simon Charette for advice and review.
Diffstat (limited to 'tests')
-rw-r--r--tests/schema/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/schema/tests.py b/tests/schema/tests.py
index e2b4f8ca6b..e7f47865d4 100644
--- a/tests/schema/tests.py
+++ b/tests/schema/tests.py
@@ -1953,7 +1953,7 @@ class SchemaTests(TransactionTestCase):
editor.alter_field(model, get_field(unique=True), field, strict=True)
self.assertNotIn(constraint_name, self.get_constraints(model._meta.db_table))
- if connection.features.supports_foreign_keys:
+ if editor.sql_create_fk:
constraint_name = "CamelCaseFKConstraint"
editor.execute(
editor.sql_create_fk % {