mirror of
https://github.com/django/django.git
synced 2025-11-27 22:05:04 +00:00
Refs #23919 -- Removed re.U and re.UNICODE (default on Python 3).
This commit is contained in:
parent
990ce6386c
commit
c22212220a
7 changed files with 23 additions and 19 deletions
|
|
@ -241,7 +241,7 @@ validate_slug = RegexValidator(
|
|||
'invalid'
|
||||
)
|
||||
|
||||
slug_unicode_re = _lazy_re_compile(r'^[-\w]+\Z', re.U)
|
||||
slug_unicode_re = _lazy_re_compile(r'^[-\w]+\Z')
|
||||
validate_unicode_slug = RegexValidator(
|
||||
slug_unicode_re,
|
||||
_("Enter a valid 'slug' consisting of Unicode letters, numbers, underscores, or hyphens."),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue