app/soc/views/models/survey.py
changeset 2467 f46cff8d676b
parent 2464 64b241a237b2
child 2469 ac14b088f89e
--- a/app/soc/views/models/survey.py	Tue Jun 30 17:55:43 2009 +0200
+++ b/app/soc/views/models/survey.py	Tue Jun 30 18:02:10 2009 +0200
@@ -38,7 +38,6 @@
 from soc.logic import cleaning
 from soc.logic import dicts
 from soc.logic.models.survey import logic as survey_logic
-from soc.logic.models.survey import results_logic
 from soc.logic.models.survey import GRADES
 from soc.logic.models.user import logic as user_logic
 from soc.models.survey import Survey
@@ -737,6 +736,8 @@
     """View for SurveyRecord and SurveyRecordGroup.
     """
 
+    results_logic = params['logic'].getRecordLogic()
+
     user = user_logic.getForCurrentAccount()
 
     # TODO(ajaksu) use the named parameter link_id from the re