mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16: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
@@ -1275,7 +1275,7 @@ class AutodetectorTests(TestCase):
|
||||
"testapp", "model", [("id", models.AutoField(primary_key=True, validators=[
|
||||
RegexValidator(
|
||||
re.compile('^[-a-zA-Z0-9_]+\\Z'),
|
||||
"Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.",
|
||||
'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.',
|
||||
'invalid'
|
||||
)
|
||||
]))]
|
||||
@@ -1292,7 +1292,7 @@ class AutodetectorTests(TestCase):
|
||||
"testapp", "model", [("id", models.AutoField(primary_key=True, validators=[
|
||||
RegexValidator(
|
||||
re.compile('^[a-z]+\\Z', 32),
|
||||
"Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.",
|
||||
'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.',
|
||||
'invalid'
|
||||
)
|
||||
]))]
|
||||
|
||||
Reference in New Issue
Block a user