#29605: Email Validation failed
------------------------------------------+------------------------
Reporter: Pavel Sirotkin | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
I have some email with from address 'Name Surname <developer-
[email protected]>' which contain in EmailField() when I try save in
admin form I get exception what tell me my email not valid. This example
email stored in my DB
from django.core.validators import validate_email
validate_email('Name Surname <[email protected]>')
{{{
ib/python3.5/site-packages/django/core/validators.py in __call__(self,
value)
203 if not self.user_regex.match(user_part):
204 raise ValidationError(self.message, code=self.code)
--> 205
206 if (domain_part not in self.domain_whitelist and
207 not self.validate_domain_part(domain_part)):
ValidationError: ['Enter a valid email address.']
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29605>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.5369e6f8179f7c9363bb7dfba04455e8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.