1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Edited contrib.sites check messages for grammar and consistency.

This commit is contained in:
Russell Keith-Magee
2014-03-03 14:27:22 +08:00
parent 57e08aa232
commit 55ba92a9c9
2 changed files with 4 additions and 7 deletions

View File

@@ -51,8 +51,7 @@ class SitesFrameworkTestCase(TestCase):
checks.Error(
("CurrentSiteManager could not find a field named "
"'places_this_article_should_appear'."),
hint=('Ensure that you did not misspell the field name. '
'Does the field exist?'),
hint=None,
obj=InvalidArticle.on_site,
id='sites.E001',
)
@@ -67,7 +66,7 @@ class SitesFrameworkTestCase(TestCase):
errors = ConfusedArticle.check()
expected = [
checks.Error(
"CurrentSiteManager requires that 'ConfusedArticle.site' must be a ForeignKey or ManyToManyField.",
"CurrentSiteManager cannot use 'ConfusedArticle.site' as it is not a ForeignKey or ManyToManyField.",
hint=None,
obj=ConfusedArticle.on_site,
id='sites.E002',