1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #30400 -- Improved typography of user facing strings.

Thanks Claude Paroz for assistance with translations.
This commit is contained in:
Jon Dufresne
2019-06-27 09:39:47 -07:00
committed by Mariusz Felisiak
parent 2b03e8e9e8
commit 42b9a23267
64 changed files with 195 additions and 195 deletions

View File

@@ -44,22 +44,22 @@ class CsrfViewTests(SimpleTestCase):
self.assertContains(
response,
'You are seeing this message because this HTTPS site requires a '
''Referer header' to be sent by your Web browser, but '
'Referer header to be sent by your Web browser, but '
'none was sent.',
status_code=403,
)
self.assertContains(
response,
'If you have configured your browser to disable 'Referer' '
'If you have configured your browser to disable Referer '
'headers, please re-enable them, at least for this site, or for '
'HTTPS connections, or for 'same-origin' requests.',
'HTTPS connections, or for same-origin requests.',
status_code=403,
)
self.assertContains(
response,
'If you are using the <meta name="referrer" '
'content="no-referrer"> tag or including the '
''Referrer-Policy: no-referrer' header, please remove them.',
'Referrer-Policy: no-referrer header, please remove them.',
status_code=403,
)