validate email id only if provided (#9020)
This commit is contained in:
parent
ca89b6f59c
commit
c2bf50042f
@ -27,7 +27,8 @@ class JobApplicant(Document):
|
|||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.check_email_id_is_unique()
|
self.check_email_id_is_unique()
|
||||||
validate_email_add(self.email_id, True)
|
if self.email_id:
|
||||||
|
validate_email_add(self.email_id, True)
|
||||||
|
|
||||||
if not self.applicant_name and self.email_id:
|
if not self.applicant_name and self.email_id:
|
||||||
guess = self.email_id.split('@')[0]
|
guess = self.email_id.split('@')[0]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user