#16501: validators.py don't like unicode slug
---------------------------+------------------------------
 Reporter:  norn           |          Owner:  nobody
     Type:  Bug            |         Status:  new
Milestone:                 |      Component:  Core (Other)
  Version:  1.3            |       Severity:  Normal
 Keywords:  unicode, slug  |   Triage Stage:  Unreviewed
Has patch:  0              |  Easy pickings:  1
    UI/UX:  0              |
---------------------------+------------------------------
 I patch every new version of my django installation and wondering why
 nobody fixed this in branch tree.

 The problem is extremely simple - I like to use slug in my native language
 (and google likes the same). To fix the problem we just need to do this in
 validators.py:

 {{{
 slug_re = re.compile(r'^[-\w]+$',flags=re.U)
 }}}

 instead of this

 {{{
 slug_re = re.compile(r'^[-\w]+$')
 }}}

 The solution is simple. And the same we should do with URLValidator.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16501>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to