From 384f89f8f843953ac11cf211f85291b5c14baeb9 Mon Sep 17 00:00:00 2001 From: Collin Anderson Date: Thu, 18 Aug 2016 12:45:27 -0400 Subject: Fixed #26998 -- Reverted some admin checks from checking field.many_to_many back to isinstance(field, models.ManyToManyField). This partially reverts 983c158da7723eb00a376bd31db76709da4d0260 --- tests/modeladmin/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/modeladmin') diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index 40ea025baf..d19093334a 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): -- cgit v1.3