summaryrefslogtreecommitdiff
path: root/tests/multiple_database
diff options
context:
space:
mode:
authorGregory N. Schmit <schmitgreg@gmail.com>2018-12-21 01:24:04 -0600
committerTim Graham <timograham@gmail.com>2019-02-07 19:56:47 -0500
commit48c17807a99f7a4341c74db19e16a37b010827c2 (patch)
treef5af98a18c850b96161b3c758fccf7eb7b617482 /tests/multiple_database
parent5cc6f02f91e8860c867cc68cf42e66b5bb54c63d (diff)
downloaddjango-48c17807a99f7a4341c74db19e16a37b010827c2.tar.gz
Fixed #16027 -- Added app_label to ContentType.__str__().
Diffstat (limited to 'tests/multiple_database')
-rw-r--r--tests/multiple_database/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/multiple_database/tests.py b/tests/multiple_database/tests.py
index a403b9fd88..e39967ce78 100644
--- a/tests/multiple_database/tests.py
+++ b/tests/multiple_database/tests.py
@@ -840,8 +840,8 @@ class QueryTestCase(TestCase):
# Set a foreign key with an object from a different database
msg = (
- 'Cannot assign "<ContentType: book>": the current database router '
- 'prevents this relation.'
+ 'Cannot assign "<ContentType: multiple_database | book>": the '
+ 'current database router prevents this relation.'
)
with self.assertRaisesMessage(ValueError, msg):
review1.content_object = dive