'Validates if the Student Applicant is Unique'

def check_unique(self):

    student = frappe.db.sql(u'select    name    from    `tabStudent`    where    student_applicant=%s    and    name!=%s', (self.student_applicant, self.name))
    if student:
        frappe.throw(_(u'Student    {0}    exist    against    student    applicant    {1}').format(student[0][0], self.student_applicant))
