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 --- docs/ref/checks.txt | 8 ++++---- docs/releases/1.10.1.txt | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index e0c24eb07d..82f3c19228 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -312,7 +312,7 @@ with the admin site: ``fields``. * **admin.E012**: There are duplicate field(s) in ``fieldsets[n][1]``. * **admin.E013**: ``fields[n]/fieldsets[n][m]`` cannot include the - many-to-many field ````, because that field manually specifies a + ``ManyToManyField`` ````, because that field manually specifies a relationship model. * **admin.E014**: The value of ``exclude`` must be a list or tuple. * **admin.E015**: The value of ``exclude`` contains duplicate field(s). @@ -336,8 +336,8 @@ with the admin site: * **admin.E027**: The value of ``prepopulated_fields`` refers to ````, which is not an attribute of ````. * **admin.E028**: The value of ``prepopulated_fields`` refers to - ````, which must not be a ``DateTimeField``, a foreign key or a - many-to-many field. + ````, which must not be a ``DateTimeField``, a ``ForeignKey``, or a + ``ManyToManyField`` field. * **admin.E029**: The value of ``prepopulated_fields[]`` must be a list or tuple. * **admin.E030**: The value of ``prepopulated_fields`` refers to @@ -371,7 +371,7 @@ with the admin site: which is not a callable, an attribute of ````, or an attribute or method on ````. * **admin.E109**: The value of ``list_display[n]`` must not be a - many-to-many field. + ``ManyToManyField`` field. * **admin.E110**: The value of ``list_display_links`` must be a list, a tuple, or ``None``. * **admin.E111**: The value of ``list_display_links[n]`` refers to ``