diff options
| author | Claude Paroz <claude@2xlibre.net> | 2015-01-10 17:24:16 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-07-11 09:07:31 -0400 |
| commit | 169c3b3e07829d9ffa409b6eb5c1094d8ef918a8 (patch) | |
| tree | 1965a301bae8137053f2b3b24947775e2465aed9 /tests | |
| parent | 29769a9942b08c86397692fa164396a670a4e1ec (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.py | 2 |
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 % { |
