# HG changeset patch # User Lennard de Rijk # Date 1246311624 -7200 # Node ID 9b8f3240e3bf56c786da8f184101439ff25ff026 # Parent 4abc27894b61c385fbd1a1c1b4aaa1df7d3a195b Set the correct base_model and scope_logic for extended Survey logic. diff -r 4abc27894b61 -r 9b8f3240e3bf app/soc/logic/models/survey.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. """ diff -r 4abc27894b61 -r 9b8f3240e3bf app/soc/logic/models/survey_record.py --- 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. """