Make Sponsor the scope_logic for the GSoC timeline model.
authorLennard de Rijk <ljvderijk@gmail.com>
Wed, 26 Aug 2009 18:23:58 +0200
changeset 2809 ecc4e534edd3
parent 2808 0b2d25b1c473
child 2810 e63b3e0845a9
Make Sponsor the scope_logic for the GSoC timeline model. This will prevent errors when for instance generating URL's that are relying on the scope of this timeline.
app/gsoc/logic/models/timeline.py
--- a/app/gsoc/logic/models/timeline.py	Wed Aug 26 18:11:25 2009 +0200
+++ b/app/gsoc/logic/models/timeline.py	Wed Aug 26 18:23:58 2009 +0200
@@ -19,9 +19,11 @@
 
 __authors__ = [
   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
+  '"Lennard de Rijk" <ljvderijk@gmail.com.',
   ]
 
 
+from soc.logic.models import sponsor as sponsor_logic
 from soc.logic.models import timeline as timeline_logic
 
 import gsoc.models.timeline
@@ -34,7 +36,7 @@
 
   def __init__(self, model=gsoc.models.timeline.Timeline,
                base_model=soc.models.timeline.Timeline,
-               scope_logic=None):
+               scope_logic=sponsor_logic):
     """Defines the name, key_name and model for this entity.
     """