summaryrefslogtreecommitdiff
path: root/tests/modeladmin/tests.py
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/modeladmin/tests.py
parent2b3a9414570af623853ca0f819c7d77d0511f22c (diff)
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/modeladmin/tests.py')
-rw-r--r--tests/modeladmin/tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py
index c7e4b2c29d..790d24f66d 100644
--- a/tests/modeladmin/tests.py
+++ b/tests/modeladmin/tests.py
@@ -633,7 +633,7 @@ class RawIdCheckTests(CheckTestCase):
self.assertIsInvalid(
ValidationTestModelAdmin, ValidationTestModel,
- "The value of 'raw_id_fields[0]' must be a ForeignKey or ManyToManyField.",
+ "The value of 'raw_id_fields[0]' must be a foreign key or a many-to-many field.",
'admin.E003')
def test_valid_case(self):
@@ -826,7 +826,7 @@ class FilterVerticalCheckTests(CheckTestCase):
self.assertIsInvalid(
ValidationTestModelAdmin, ValidationTestModel,
- "The value of 'filter_vertical[0]' must be a ManyToManyField.",
+ "The value of 'filter_vertical[0]' must be a many-to-many field.",
'admin.E020')
def test_valid_case(self):
@@ -863,7 +863,7 @@ class FilterHorizontalCheckTests(CheckTestCase):
self.assertIsInvalid(
ValidationTestModelAdmin, ValidationTestModel,
- "The value of 'filter_horizontal[0]' must be a ManyToManyField.",
+ "The value of 'filter_horizontal[0]' must be a many-to-many field.",
'admin.E020')
def test_valid_case(self):
@@ -960,7 +960,7 @@ class PrepopulatedFieldsCheckTests(CheckTestCase):
self.assertIsInvalid(
ValidationTestModelAdmin, ValidationTestModel,
("The value of 'prepopulated_fields' refers to 'users', which must not be "
- "a DateTimeField, ForeignKey or ManyToManyField."),
+ "a DateTimeField, a foreign key, or a many-to-many field."),
'admin.E028')
def test_valid_case(self):
@@ -998,7 +998,7 @@ class ListDisplayTests(CheckTestCase):
self.assertIsInvalid(
ValidationTestModelAdmin, ValidationTestModel,
- "The value of 'list_display[0]' must not be a ManyToManyField.",
+ "The value of 'list_display[0]' must not be a many-to-many field.",
'admin.E109')
def test_valid_case(self):