[hotfix] unique job applicant

This commit is contained in:
Anand Doshi 2015-04-01 12:29:30 +05:30
parent dd77287cb9
commit ee57a8d2a4

View File

@ -21,7 +21,7 @@ class JobApplicant(Document):
def check_email_id_is_unique(self):
if self.email_id:
names = frappe.db.sql_list("""select name from `tabJob Application`
names = frappe.db.sql_list("""select name from `tabJob Applicant`
where email_id=%s and name!=%s""", (self.email_id, self.name))
if names: