mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +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:
parent
2b3a941457
commit
983c158da7
10 changed files with 40 additions and 57 deletions
|
@ -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',
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue