equal
deleted
inserted
replaced
24 |
24 |
25 from google.appengine.ext import db |
25 from google.appengine.ext import db |
26 |
26 |
27 from django.utils.translation import ugettext |
27 from django.utils.translation import ugettext |
28 |
28 |
|
29 import soc.models.linkable |
29 import soc.models.work |
30 import soc.models.work |
30 |
31 |
31 |
32 |
32 class Document(soc.models.work.Work): |
33 class Document(soc.models.work.Work): |
33 """Model of a Document. |
34 """Model of a Document. |
77 is_featured = db.BooleanProperty( |
78 is_featured = db.BooleanProperty( |
78 verbose_name=ugettext('Is Featured')) |
79 verbose_name=ugettext('Is Featured')) |
79 is_featured.help_text = ugettext( |
80 is_featured.help_text = ugettext( |
80 'Field used to indicate if a Work should be featured, for example,' |
81 'Field used to indicate if a Work should be featured, for example,' |
81 ' in the sidebar menu.') |
82 ' in the sidebar menu.') |
|
83 |
|
84 #: Reference to Document containing the contents of the "/home" page |
|
85 home_for = db.ReferenceProperty( |
|
86 reference_class=soc.models.linkable.Linkable, |
|
87 collection_name='home_docs') |
|
88 home_for.help_text = ugettext( |
|
89 'The Precense this document is the home document for.') |