Set the correct base_model and scope_logic for extended Survey logic.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 29 Jun 2009 23:40:24 +0200
changeset 2453 9b8f3240e3bf
parent 2452 4abc27894b61
child 2454 849956450d69
Set the correct base_model and scope_logic for extended Survey logic.
app/soc/logic/models/survey.py
app/soc/logic/models/survey_record.py
--- a/app/soc/logic/models/survey.py	Mon Jun 29 23:16:21 2009 +0200
+++ b/app/soc/logic/models/survey.py	Mon Jun 29 23:40:24 2009 +0200
@@ -410,7 +410,7 @@
   """
 
   def __init__(self, model=ProjectSurvey,
-               base_model=None, scope_logic=None):
+               base_model=Survey, scope_logic=linkable_logic):
     """Defines the name, key_name and model for this entity.
     """
 
@@ -423,7 +423,7 @@
   """
 
   def __init__(self, model=GradingProjectSurvey,
-               base_model=None, scope_logic=None):
+               base_model=ProjectSurvey, scope_logic=linkable_logic):
     """Defines the name, key_name and model for this entity.
     """
 
--- a/app/soc/logic/models/survey_record.py	Mon Jun 29 23:16:21 2009 +0200
+++ b/app/soc/logic/models/survey_record.py	Mon Jun 29 23:40:24 2009 +0200
@@ -87,7 +87,7 @@
   """
 
   def __init__(self, model=ProjectSurveyRecord,
-               base_model=None, scope_logic=None):
+               base_model=SurveyRecord, scope_logic=None):
     """Defines the name, key_name and model for this entity.
     """
 
@@ -100,7 +100,7 @@
   """
 
   def __init__(self, model=GradingProjectSurveyRecord,
-               base_model=None, scope_logic=None):
+               base_model=ProjectSurveyRecord, scope_logic=None):
     """Defines the name, key_name and model for this entity.
     """