misc: make EmailValidator serializable (#40685)
This commit is contained in:
parent
b080c03f07
commit
f101fdcd1b
|
@ -29,8 +29,9 @@ from django.utils.translation import gettext_lazy as _
|
|||
from . import app_settings
|
||||
|
||||
|
||||
# copied from http://www.djangotips.com/real-email-validation
|
||||
@deconstructible
|
||||
class EmailValidator:
|
||||
# copied from http://www.djangotips.com/real-email-validation
|
||||
def __init__(self, rcpt_check=False):
|
||||
self.rcpt_check = rcpt_check
|
||||
|
||||
|
|
Loading…
Reference in New Issue