mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #16027 -- Added app_label to ContentType.__str__().
This commit is contained in:
committed by
Tim Graham
parent
5cc6f02f91
commit
48c17807a9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user