From 983c158da7723eb00a376bd31db76709da4d0260 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 10 Mar 2016 18:21:25 +0100 Subject: Refs #24227 -- Replaced M2M isinstance checks by field.many_to_many Thanks Markus Holtermann, Collin Anderson and Tim Graham for the reviews. --- tests/admin_checks/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/admin_checks') 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', ) -- cgit v1.3