equal
deleted
inserted
replaced
22 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
22 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
23 ] |
23 ] |
24 |
24 |
25 |
25 |
26 from soc.logic.models import presence_with_tos |
26 from soc.logic.models import presence_with_tos |
27 from soc.logic.models import presence_with_tos as tos_logic |
27 from soc.logic.models import sponsor as sponsor_logic |
28 |
28 |
29 import gsoc.logic.models.timeline |
29 import gsoc.logic.models.timeline |
30 import soc.logic.models.timeline |
30 import soc.logic.models.timeline |
31 import soc.models.program |
31 import soc.models.program |
32 |
32 |
37 |
37 |
38 TIMELINE_LOGIC = {'gsoc' : gsoc.logic.models.timeline.logic, |
38 TIMELINE_LOGIC = {'gsoc' : gsoc.logic.models.timeline.logic, |
39 'ghop' : soc.logic.models.timeline.logic} |
39 'ghop' : soc.logic.models.timeline.logic} |
40 |
40 |
41 def __init__(self, model=soc.models.program.Program, |
41 def __init__(self, model=soc.models.program.Program, |
42 base_model=None, scope_logic=tos_logic): |
42 base_model=None, scope_logic=sponsor_logic): |
43 """Defines the name, key_name and model for this entity. |
43 """Defines the name, key_name and model for this entity. |
44 """ |
44 """ |
45 |
45 |
46 super(Logic, self).__init__(model=model, base_model=base_model, |
46 super(Logic, self).__init__(model=model, base_model=base_model, |
47 scope_logic=scope_logic) |
47 scope_logic=scope_logic) |