app/soc/logic/models/program.py
changeset 1474 5eaf734fb178
parent 1308 35b75ffcbb37
child 2783 339696f3f5cf
equal deleted inserted replaced
1473:e82bf1e4bf36 1474:5eaf734fb178
    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)