@frappe.whitelist()
def get_student_batch_students(student_batch):
 students = frappe.get_list(u'Student Batch Student', fields=[u'student', u'student_name', u'idx'], filters={u'parent': student_batch, u'active': 1}, order_by=u'idx')
 return students

@ frappe . whitelist ( ) def get_student_batch_students ( student_batch ) : students = frappe . get_list ( u'Student Batch Student' , fields = [ u'student' , u'student_name' , u'idx' ] , filters = { u'parent' : student_batch , u'active' : 1 } , order_by = u'idx' ) return students
returns list of student .