return[u.nameforuinUserTestGroup.objects.raw("select * from auth_user, student_usertestgroup, student_usertestgroup_users where auth_user.id = student_usertestgroup_users.user_id and student_usertestgroup_users.usertestgroup_id = student_usertestgroup.id and auth_user.id = %s",[user.id])]
groups=[u.nameforuinUserTestGroup.objects.raw("select * from auth_user, student_usertestgroup, student_usertestgroup_users where auth_user.id = student_usertestgroup_users.user_id and student_usertestgroup_users.usertestgroup_id = student_usertestgroup.id and auth_user.id = %s",[user.id])]
total=courseware.modules.capa_module.Module(etree.tostring(p),"id").max_score()# TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?
# TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?