There was an error while loading. Please reload this page.
1 parent d1207bf commit fdd03eeCopy full SHA for fdd03ee
1 file changed
ietf/secr/rolodex/forms.py
@@ -1,7 +1,7 @@
1
from django import forms
2
from django.contrib.auth.models import User
3
from django.core.exceptions import ObjectDoesNotExist
4
-from django.core.validators import email_re
+from django.core.validators import validate_email
5
6
from ietf.person.models import Email, Person
7
@@ -83,8 +83,8 @@ def clean_address(self):
83
cleaned_data = self.cleaned_data
84
address = cleaned_data.get("address")
85
86
- if address and not email_re.match(address):
87
- raise forms.ValidationError("Enter a valid email address")
+ if address:
+ validate_email(address)
88
89
return address
90
0 commit comments