app/soc/models/document.py
changeset 1091 0e648c690bb7
parent 936 b3e1e0c9649c
child 1095 0122dc66e5d2
equal deleted inserted replaced
1090:e4c2ccbeb25a 1091:0e648c690bb7
    16 
    16 
    17 """This module contains the Document Model."""
    17 """This module contains the Document Model."""
    18 
    18 
    19 __authors__ = [
    19 __authors__ = [
    20   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    20   '"Pawel Solyga" <pawel.solyga@gmail.com>',
       
    21   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    21 ]
    22 ]
    22 
    23 
       
    24 
       
    25 from google.appengine.ext import db
       
    26 
       
    27 from django.utils.translation import ugettext
    23 
    28 
    24 import soc.models.work
    29 import soc.models.work
    25 
    30 
    26 
    31 
    27 class Document(soc.models.work.Work):
    32 class Document(soc.models.work.Work):
    39     work.content:  the rich-text contents of the Document
    44     work.content:  the rich-text contents of the Document
    40   """
    45   """
    41 
    46 
    42   URL_NAME = 'document'
    47   URL_NAME = 'document'
    43 
    48 
    44   pass
    49   #: field storing whether a link to the Document should be featured in
       
    50   #: the sidebar menu (and possibly elsewhere); FAQs, Terms of Service,
       
    51   #: and the like are examples of "featured" Document
       
    52   is_featured = db.BooleanProperty(
       
    53       verbose_name=ugettext('Is Featured'))
       
    54   is_featured.help_text = ugettext(
       
    55       'Field used to indicate if a Work should be featured, for example,'
       
    56       ' in the sidebar menu.')