mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #24227 -- Replaced M2M isinstance checks by field.many_to_many
Thanks Markus Holtermann, Collin Anderson and Tim Graham for the reviews.
This commit is contained in:
@@ -583,7 +583,7 @@ class SystemChecksTestCase(SimpleTestCase):
|
||||
errors = BookAdmin(Book, AdminSite()).check()
|
||||
expected = [
|
||||
checks.Error(
|
||||
"The value of 'fields' cannot include the ManyToManyField 'authors', "
|
||||
"The value of 'fields' cannot include the many-to-many field '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 ManyToManyField "
|
||||
"'authors', because that field manually specifies a relationship model.",
|
||||
"The value of 'fieldsets[1][1][\"fields\"]' cannot include the many-to-many field "
|
||||
"'authors' because that field manually specifies a relationship model.",
|
||||
obj=FieldsetBookAdmin,
|
||||
id='admin.E013',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user