equal
deleted
inserted
replaced
19 |
19 |
20 __authors__ = [ |
20 __authors__ = [ |
21 '"Madhusudan.C.S" <madhusudancs@gmail.com>' |
21 '"Madhusudan.C.S" <madhusudancs@gmail.com>' |
22 ] |
22 ] |
23 |
23 |
24 from soc.logic.models import linkable |
24 from soc.logic.models import base |
25 |
25 |
26 import soc.models.linkable |
|
27 |
|
28 import soc.modules.ghop.logic.models.organization |
|
29 import soc.modules.ghop.models.work_submission |
26 import soc.modules.ghop.models.work_submission |
30 |
27 |
31 |
28 |
32 class Logic(linkable.Logic): |
29 class Logic(base.Logic): |
33 """Logic methods for the GHOPWorkSubmission model. |
30 """Logic methods for the GHOPWorkSubmission model. |
34 """ |
31 """ |
35 |
32 |
36 def __init__( |
33 def __init__( |
37 self, |
34 self, |
38 model=soc.modules.ghop.models.work_submission.GHOPWorkSubmission, |
35 model=soc.modules.ghop.models.work_submission.GHOPWorkSubmission, |
39 base_model=soc.models.linkable.Linkable, |
36 id_based=True): |
40 scope_logic=soc.modules.ghop.logic.models.organization): |
|
41 """Defines the name, key_name and model for this entity. |
37 """Defines the name, key_name and model for this entity. |
42 """ |
38 """ |
43 |
39 |
44 super(Logic, self).__init__(model, base_model=base_model, |
40 super(Logic, self).__init__(model, id_based=id_based) |
45 scope_logic=scope_logic) |
|
46 |
41 |
47 |
42 |
48 logic = Logic() |
43 logic = Logic() |