Removed setting of the scope in the ProjectSurvey init.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 30 Jun 2009 08:54:39 +0200
changeset 2461 c3e3df63e683
parent 2460 b8b0c631bcfe
child 2462 2d5d2961f774
Removed setting of the scope in the ProjectSurvey init. This is because it is not possible to query for another entity outside your entity group in the __init__ fucntion.
app/soc/models/project_survey.py
--- a/app/soc/models/project_survey.py	Tue Jun 30 08:50:56 2009 +0200
+++ b/app/soc/models/project_survey.py	Tue Jun 30 08:54:39 2009 +0200
@@ -34,7 +34,6 @@
     super(ProjectSurvey, self).__init__(*args, **kwargs)
     self.prefix = 'program'
     self.taking_access = 'student'
-    self.scope = Program.get_by_key_name(self.scope_path)
 
   def getRecords(self):
     """Returns all ProjectSurveyRecords belonging to this survey.