diff options
| author | Julien Phalip <jphalip@gmail.com> | 2012-05-31 11:45:35 -0700 |
|---|---|---|
| committer | Julien Phalip <jphalip@gmail.com> | 2012-05-31 11:45:35 -0700 |
| commit | f6fc83c97514ced9de48ca9ea442a9b166d3e211 (patch) | |
| tree | 17eb19cb7ad0ba7327b313062c00a9a2947d4fee /django/forms | |
| parent | ba10be70322027074e5f9defc1423eb0cc77473c (diff) | |
Fixed #18409 -- Made RegexField work with unicode characters.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py index 53250cc8a9..3811510326 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -446,7 +446,7 @@ class RegexField(CharField): def _set_regex(self, regex): if isinstance(regex, basestring): - regex = re.compile(regex) + regex = re.compile(regex, re.UNICODE) self._regex = regex if hasattr(self, '_regex_validator') and self._regex_validator in self.validators: self.validators.remove(self._regex_validator) |
