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.
--- 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.
"""