Changed the filter for getting a SurveyRecord for a ProjectSurvey
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 05 Jul 2009 13:31:34 +0200
changeset 2549 1ad10bf1d935
parent 2548 7f717f67f268
child 2550 85ee43d4a6f5
Changed the filter for getting a SurveyRecord for a ProjectSurvey ProjectSurveyRecords are characterized by the Survey and a Project entity. The user property is just there to state who last submitted the Survey.
app/soc/views/models/project_survey.py
--- a/app/soc/views/models/project_survey.py	Sun Jul 05 13:00:08 2009 +0200
+++ b/app/soc/views/models/project_survey.py	Sun Jul 05 13:31:34 2009 +0200
@@ -112,14 +112,11 @@
     survey_logic = params['logic']
     record_logic = survey_logic.getRecordLogic()
 
-    user_entity = user_logic.getForCurrentAccount()
-
     # get the StudentProject specified in the GET params
     project_key_name = request.GET['project']
     project_entity = student_project_logic.getFromKeyName(project_key_name)
 
     filter = {'survey': survey,
-              'user': user_entity,
               'project': project_entity}
 
     return record_logic.getForFields(filter, unique=True)