学习笔记,仅供参考,有错必纠
school = models.College.objects.get(school = school)
teams_temp = models.Team.objects.filter(school = school,
status_is_pass = "通过")
teams = [t.id for t in teams_temp if t.work.status != "未上传"]
teams = models.Team.objects.filter(id__in = teams)