#12988: Add support of IDN domains for URLField validator.
---------------------+------------------------------------------------------
 Reporter:  niksite  |       Owner:  nobody    
   Status:  new      |   Milestone:  1.2       
Component:  Forms    |     Version:  SVN       
 Keywords:  IDN      |       Stage:  Unreviewed
Has_patch:  0        |  
---------------------+------------------------------------------------------
 With Django trunk (revision 12617), I have the following:

 {{{
 >>> from django.forms import URLField
 >>> URLField().clean('http://xn--e1afmkfd.xn--80akhbyknj4f/')
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/home/niksite/webapps/django/datamining/dist/django/forms/fields.py",
 line 156, in clean
     self.run_validators(value)
   File
 "/home/niksite/webapps/django/datamining/dist/django/forms/fields.py",
 line 145, in run_validators
     raise ValidationError(errors)
 django.core.exceptions.ValidationError: [u'Enter a valid URL.']
 >>> URLField().clean('http://пример.испытание/')
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/home/niksite/webapps/django/datamining/dist/django/forms/fields.py",
 line 156, in clean
     self.run_validators(value)
   File
 "/home/niksite/webapps/django/datamining/dist/django/forms/fields.py",
 line 145, in run_validators
     raise ValidationError(errors)
 django.core.exceptions.ValidationError: [u'Enter a valid URL.']
 }}}

 BTW, these URLs are quit valid, moreover -- there is a wiki page after
 these URLs.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12988>
Django <http://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