'Updates Student Applicant status to Admitted'

def update_applicant_status(self):

    if self.student_applicant:
        frappe.db.set_value(u'Student    Applicant', self.student_applicant, u'application_status', u'Admitted')
