diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-14 12:54:27 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-18 07:05:52 +0200 |
commit | 8e89dfe1c24540d33b577377af633694ff57f505 (patch) | |
tree | 127b5b495d97a89e88e943470b8a57a2f8ce907f /tests/contenttypes_tests | |
parent | 331a460f8f2e4f447b68fba491464b68c9b21fd1 (diff) | |
download | django-8e89dfe1c24540d33b577377af633694ff57f505.tar.gz |
Fixed various tests on MySQL with MyISAM storage engine.
Diffstat (limited to 'tests/contenttypes_tests')
-rw-r--r-- | tests/contenttypes_tests/test_models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/contenttypes_tests/test_models.py b/tests/contenttypes_tests/test_models.py index a96e12e69f..2741556df7 100644 --- a/tests/contenttypes_tests/test_models.py +++ b/tests/contenttypes_tests/test_models.py @@ -288,6 +288,9 @@ class TestRouter: def db_for_write(self, model, **hints): return "default" + def allow_relation(self, obj1, obj2, **hints): + return True + @override_settings(DATABASE_ROUTERS=[TestRouter()]) class ContentTypesMultidbTests(TestCase): |