Calling the correct super in Project and Grading Survey Logic.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 30 Jun 2009 08:49:34 +0200
changeset 2459 accd8ba94b44
parent 2458 467ec0cf3ece
child 2460 b8b0c631bcfe
Calling the correct super in Project and Grading Survey Logic.
app/soc/logic/models/survey.py
--- a/app/soc/logic/models/survey.py	Tue Jun 30 03:03:46 2009 -0700
+++ b/app/soc/logic/models/survey.py	Tue Jun 30 08:49:34 2009 +0200
@@ -414,8 +414,8 @@
     """Defines the name, key_name and model for this entity.
     """
 
-    super(Logic, self).__init__(model=model, base_model=base_model,
-                                scope_logic=scope_logic)
+    super(ProjectLogic, self).__init__(model=model, base_model=base_model,
+                                       scope_logic=scope_logic)
 
 
 class GradingProjectLogic(ProjectLogic):
@@ -427,8 +427,9 @@
     """Defines the name, key_name and model for this entity.
     """
 
-    super(Logic, self).__init__(model=model, base_model=base_model,
-                                scope_logic=scope_logic)
+    super(GradingProjectLogic, self).__init__(model=model,
+                                              base_model=base_model,
+                                              scope_logic=scope_logic)
 
 class ResultsLogic(work.Logic):
   """Logic methods for the Survey model