Fixed GradingRecord and GradingSurveyRecord Logic to load the correct Model.
authorLennard de Rijk <ljvderijk@gmail.com>
Fri, 10 Jul 2009 11:59:00 +0200
changeset 2584 10858e5d5712
parent 2583 3a8275049403
child 2585 37584af2420e
Fixed GradingRecord and GradingSurveyRecord Logic to load the correct Model.
app/soc/logic/models/grading_record.py
app/soc/logic/models/grading_survey_group.py
--- a/app/soc/logic/models/grading_record.py	Fri Jul 10 11:39:41 2009 +0200
+++ b/app/soc/logic/models/grading_record.py	Fri Jul 10 11:59:00 2009 +0200
@@ -31,7 +31,7 @@
   """Logic methods for the GradingRecord model.
   """
 
-  def __init__(self, model=soc.models.grading_record,
+  def __init__(self, model=soc.models.grading_record.GradingRecord,
                base_model=None, scope_logic=None):
     """Defines the name, key_name and model for this entity.
     """
--- a/app/soc/logic/models/grading_survey_group.py	Fri Jul 10 11:39:41 2009 +0200
+++ b/app/soc/logic/models/grading_survey_group.py	Fri Jul 10 11:59:00 2009 +0200
@@ -32,7 +32,7 @@
   """Logic methods for the GradingSurveyGroup model.
   """
 
-  def __init__(self, model=soc.models.grading_survey_group,
+  def __init__(self, model=soc.models.grading_survey_group.GradingSurveyGroup,
                base_model=None, scope_logic=program_logic):
     """Defines the name, key_name and model for this entity.
     """