mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
Fixed #26998 -- Reverted some admin checks from checking field.many_to_many back to isinstance(field, models.ManyToManyField).
This partially reverts 983c158da7
This commit is contained in:
committed by
Tim Graham
parent
a3db480393
commit
384f89f8f8
@@ -583,7 +583,7 @@ class SystemChecksTestCase(SimpleTestCase):
|
||||
errors = BookAdmin(Book, AdminSite()).check()
|
||||
expected = [
|
||||
checks.Error(
|
||||
"The value of 'fields' cannot include the many-to-many field 'authors' "
|
||||
"The value of 'fields' cannot include the ManyToManyField '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 many-to-many field "
|
||||
"'authors' because that field manually specifies a relationship model.",
|
||||
"The value of 'fieldsets[1][1][\"fields\"]' cannot include the ManyToManyField "
|
||||
"'authors', because that field manually specifies a relationship model.",
|
||||
obj=FieldsetBookAdmin,
|
||||
id='admin.E013',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user