#27029: Make EmailValidator accept non-ASCII characters
-------------------------------------+-------------------------------------
     Reporter:  Ramin Farajpour      |                    Owner:  j-bernard
  Cami                               |
         Type:                       |                   Status:  assigned
  Cleanup/optimization               |
    Component:  Core (Other)         |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by j-bernard):

 Here is a little context for my use case. In general, I create my own
 validator whenever it's needed to override the default Django behavior but
 I have a particular case where django-allauth app is used and is using the
 EmailValidator. In that case, I cannot easily override it.
 My suggestion would then be to make the default validator more permissive
 to get some flexibility in the kind of use case that I have. One can still
 include another validation layer on top of that.

 If you don't mind implementing a more complex specific validator for
 internationalized email addresses it would be better to avoid using only a
 regex. I kept it the simplest as I could in my PR because I'm aware that
 changing the validator is touchy.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/27029#comment:33>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070185a66dd1b1-4bd0b52a-e3b1-4ea6-b91a-189887e19379-000000%40eu-central-1.amazonses.com.

Reply via email to