app/soc/models/document.py
changeset 1416 6c94a1531ead
parent 1310 a3f654f30fbc
child 2957 f6515daaf000
equal deleted inserted replaced
1415:d34768bf62d8 1416:6c94a1531ead
    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.')