mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed unneeded hint=None/obj=None in system check messages.
This commit is contained in:
@@ -44,9 +44,8 @@ class CurrentSiteManagerChecksTests(SimpleTestCase):
|
||||
errors = InvalidArticle.check()
|
||||
expected = [
|
||||
checks.Error(
|
||||
("CurrentSiteManager could not find a field named "
|
||||
"'places_this_article_should_appear'."),
|
||||
hint=None,
|
||||
"CurrentSiteManager could not find a field named "
|
||||
"'places_this_article_should_appear'.",
|
||||
obj=InvalidArticle.on_site,
|
||||
id='sites.E001',
|
||||
)
|
||||
@@ -62,8 +61,8 @@ class CurrentSiteManagerChecksTests(SimpleTestCase):
|
||||
errors = ConfusedArticle.check()
|
||||
expected = [
|
||||
checks.Error(
|
||||
"CurrentSiteManager cannot use 'ConfusedArticle.site' as it is not a ForeignKey or ManyToManyField.",
|
||||
hint=None,
|
||||
"CurrentSiteManager cannot use 'ConfusedArticle.site' as it is "
|
||||
"not a ForeignKey or ManyToManyField.",
|
||||
obj=ConfusedArticle.on_site,
|
||||
id='sites.E002',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user