mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
@@ -62,7 +62,7 @@ class CurrentSiteManagerChecksTests(SimpleTestCase):
|
||||
expected = [
|
||||
checks.Error(
|
||||
"CurrentSiteManager cannot use 'ConfusedArticle.site' as it is "
|
||||
"not a ForeignKey or ManyToManyField.",
|
||||
"not a foreign key or a many-to-many field.",
|
||||
obj=ConfusedArticle.on_site,
|
||||
id='sites.E002',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user