mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30400 -- Improved typography of user facing strings.
Thanks Claude Paroz for assistance with translations.
This commit is contained in:
committed by
Mariusz Felisiak
parent
2b03e8e9e8
commit
42b9a23267
@@ -51,8 +51,8 @@ class FlatpageAdminFormTests(TestCase):
|
||||
with translation.override('en'):
|
||||
self.assertEqual(
|
||||
form.fields['url'].help_text,
|
||||
"Example: '/about/contact/'. Make sure to have leading and "
|
||||
"trailing slashes."
|
||||
'Example: “/about/contact/”. Make sure to have leading and '
|
||||
'trailing slashes.'
|
||||
)
|
||||
self.assertFalse(form.is_valid())
|
||||
self.assertEqual(form.errors['url'], ["URL is missing a trailing slash."])
|
||||
@@ -64,7 +64,7 @@ class FlatpageAdminFormTests(TestCase):
|
||||
with translation.override('en'):
|
||||
self.assertEqual(
|
||||
form.fields['url'].help_text,
|
||||
"Example: '/about/contact'. Make sure to have a leading slash."
|
||||
'Example: “/about/contact”. Make sure to have a leading slash.'
|
||||
)
|
||||
|
||||
def test_flatpage_admin_form_url_uniqueness_validation(self):
|
||||
|
||||
Reference in New Issue
Block a user