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

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