Set the correct base_model and scope_logic for extended Survey logic.
--- 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.
"""