mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #16027 -- Added app_label to ContentType.__str__().
This commit is contained in:
parent
5cc6f02f91
commit
48c17807a9
7 changed files with 25 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue