# HG changeset patch # User Lennard de Rijk # Date 1246989747 -7200 # Node ID 5c456c4d0a0b16ac83891ca6743c8b405ec7f61b # Parent 0162efa63bb6c6c5df64818e738f3535dc81ccd1 Fixed imports for Survey logic. diff -r 0162efa63bb6 -r 5c456c4d0a0b app/soc/logic/models/survey.py --- a/app/soc/logic/models/survey.py Tue Jul 07 18:46:47 2009 +0200 +++ b/app/soc/logic/models/survey.py Tue Jul 07 20:02:27 2009 +0200 @@ -37,10 +37,10 @@ from soc.models import student_project from soc.models.survey import Survey from soc.models.grading_project_survey import GradingProjectSurvey +from soc.models.grading_record import GradingRecord from soc.models.project_survey import ProjectSurvey from soc.models.survey import SurveyContent from soc.models.survey_record import SurveyRecord -from soc.models.survey_record_group import SurveyRecordGroup from soc.models.work import Work #TODO(James): Ensure this facilitates variable # of surveys @@ -200,7 +200,7 @@ program = survey.scope or Program.get_by_key_name(survey.scope_path) for project in program.student_projects.fetch(1000): - this_record_group = SurveyRecordGroup.all().filter( + this_record_group = GradingRecord.all().filter( "project = ", project).filter( "initial_status = ", project.status).get()