Fixed #16027 -- Added app_label to ContentType.__str__().

This commit is contained in:
Gregory N. Schmit 2018-12-21 01:24:04 -06:00 committed by Tim Graham
parent 5cc6f02f91
commit 48c17807a9
7 changed files with 25 additions and 13 deletions

View file

@ -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