summaryrefslogtreecommitdiff
path: root/tests/contenttypes_tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-04-14 12:54:27 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-04-18 07:05:52 +0200
commit8e89dfe1c24540d33b577377af633694ff57f505 (patch)
tree127b5b495d97a89e88e943470b8a57a2f8ce907f /tests/contenttypes_tests
parent331a460f8f2e4f447b68fba491464b68c9b21fd1 (diff)
downloaddjango-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.py3
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):