diff options
author | Tim Graham <timograham@gmail.com> | 2016-02-12 11:36:46 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-02-12 13:01:25 -0500 |
commit | 004ba0f99eb25c3f32aa3a41707534e955d1878e (patch) | |
tree | 74273e902b824f7288eac57ba961cbd4b572223c /tests/sites_framework | |
parent | 36f1f5cfb008c465f372389080cdd92671a6cab7 (diff) | |
download | django-004ba0f99eb25c3f32aa3a41707534e955d1878e.tar.gz |
Removed unneeded hint=None/obj=None in system check messages.
Diffstat (limited to 'tests/sites_framework')
-rw-r--r-- | tests/sites_framework/tests.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/sites_framework/tests.py b/tests/sites_framework/tests.py index 576dbfc7eb..6d2717457a 100644 --- a/tests/sites_framework/tests.py +++ b/tests/sites_framework/tests.py @@ -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', ) |