equal
deleted
inserted
replaced
24 from google.appengine.ext import db |
24 from google.appengine.ext import db |
25 |
25 |
26 from django.utils.translation import ugettext_lazy |
26 from django.utils.translation import ugettext_lazy |
27 |
27 |
28 import soc.models.presence |
28 import soc.models.presence |
|
29 import soc.models.timeline |
29 |
30 |
30 |
31 |
31 class Program(soc.models.presence.Presence): |
32 class Program(soc.models.presence.Presence): |
32 """The Program model, representing a Program ran by a Sponsor. |
33 """The Program model, representing a Program ran by a Sponsor. |
33 """ |
34 """ |
55 |
56 |
56 #: Required field storing description of the group. |
57 #: Required field storing description of the group. |
57 description = db.TextProperty(required=True, |
58 description = db.TextProperty(required=True, |
58 verbose_name=ugettext_lazy('Description')) |
59 verbose_name=ugettext_lazy('Description')) |
59 description.example_text = ugettext_lazy('This is the program for GSoC 2009') |
60 description.example_text = ugettext_lazy('This is the program for GSoC 2009') |
|
61 |
|
62 #: Required 1:1 relationship indicating the Program the Timeline |
|
63 #: belongs to. |
|
64 timeline = db.ReferenceProperty(reference_class=soc.models.timeline.Timeline, |
|
65 required=True, collection_name="program", |
|
66 verbose_name=ugettext_lazy('Timeline')) |