summaryrefslogtreecommitdiff
path: root/tests/modeladmin/tests.py
diff options
context:
space:
mode:
authorCollin Anderson <cmawebsite@gmail.com>2016-08-18 12:45:27 -0400
committerTim Graham <timograham@gmail.com>2016-08-23 16:06:41 -0400
commit4073780219258eec2d3c5f7b84f4f0a3c3cc6515 (patch)
treec315ce04c4151e54e386a17fdc10dd0cdfcf1a1a /tests/modeladmin/tests.py
parentae0f55eb491255217d6df31296ec8102007224a6 (diff)
[1.10.x] Fixed #26998 -- Reverted some admin checks from checking field.many_to_many back to isinstance(field, models.ManyToManyField).
This partially reverts 983c158da7723eb00a376bd31db76709da4d0260 Backport of 384f89f8f843953ac11cf211f85291b5c14baeb9 from master
Diffstat (limited to 'tests/modeladmin/tests.py')
-rw-r--r--tests/modeladmin/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py
index 990ed9ab32..b58fd0e76a 100644
--- a/tests/modeladmin/tests.py
+++ b/tests/modeladmin/tests.py
@@ -925,7 +925,7 @@ class PrepopulatedFieldsCheckTests(CheckTestCase):
self.assertIsInvalid(
ValidationTestModelAdmin, ValidationTestModel,
("The value of 'prepopulated_fields' refers to 'users', which must not be "
- "a DateTimeField, a foreign key, or a many-to-many field."),
+ "a DateTimeField, a ForeignKey, or a ManyToManyField."),
'admin.E028')
def test_valid_case(self):
@@ -963,7 +963,7 @@ class ListDisplayTests(CheckTestCase):
self.assertIsInvalid(
ValidationTestModelAdmin, ValidationTestModel,
- "The value of 'list_display[0]' must not be a many-to-many field.",
+ "The value of 'list_display[0]' must not be a ManyToManyField.",
'admin.E109')
def test_valid_case(self):