summaryrefslogtreecommitdiff
path: root/tests/admin_checks
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-03-10 18:21:25 +0100
committerClaude Paroz <claude@2xlibre.net>2016-03-19 09:24:27 +0100
commit983c158da7723eb00a376bd31db76709da4d0260 (patch)
treed5784910f91a4e8a5ee31bd376796c70b6463e37 /tests/admin_checks
parent2b3a9414570af623853ca0f819c7d77d0511f22c (diff)
downloaddjango-983c158da7723eb00a376bd31db76709da4d0260.tar.gz
Refs #24227 -- Replaced M2M isinstance checks by field.many_to_many
Thanks Markus Holtermann, Collin Anderson and Tim Graham for the reviews.
Diffstat (limited to 'tests/admin_checks')
-rw-r--r--tests/admin_checks/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py
index 2cf7f66d9d..c584cd42c9 100644
--- a/tests/admin_checks/tests.py
+++ b/tests/admin_checks/tests.py
@@ -583,7 +583,7 @@ class SystemChecksTestCase(SimpleTestCase):
errors = BookAdmin(Book, AdminSite()).check()
expected = [
checks.Error(
- "The value of 'fields' cannot include the ManyToManyField 'authors', "
+ "The value of 'fields' cannot include the many-to-many field 'authors' "
"because that field manually specifies a relationship model.",
obj=BookAdmin,
id='admin.E013',
@@ -601,8 +601,8 @@ class SystemChecksTestCase(SimpleTestCase):
errors = FieldsetBookAdmin(Book, AdminSite()).check()
expected = [
checks.Error(
- "The value of 'fieldsets[1][1][\"fields\"]' cannot include the ManyToManyField "
- "'authors', because that field manually specifies a relationship model.",
+ "The value of 'fieldsets[1][1][\"fields\"]' cannot include the many-to-many field "
+ "'authors' because that field manually specifies a relationship model.",
obj=FieldsetBookAdmin,
id='admin.E013',
)