# HG changeset patch # User Sverre Rabbelier # Date 1233352778 0 # Node ID 0e648c690bb7b2bb36549f8792968f88236efa9a # Parent e4c2ccbeb25ad2f32973c5bf7c7318013e38b6be Moved is_featured property to Document Only Documents can be featured in the sidebar, as such it makes sense to have this property in the Document model. Patch by: Sverre Rabbelier diff -r e4c2ccbeb25a -r 0e648c690bb7 app/soc/models/document.py --- a/app/soc/models/document.py Fri Jan 30 21:59:13 2009 +0000 +++ b/app/soc/models/document.py Fri Jan 30 21:59:38 2009 +0000 @@ -18,9 +18,14 @@ __authors__ = [ '"Pawel Solyga" ', + '"Sverre Rabbelier" ', ] +from google.appengine.ext import db + +from django.utils.translation import ugettext + import soc.models.work @@ -41,4 +46,11 @@ URL_NAME = 'document' - pass \ No newline at end of file + #: field storing whether a link to the Document should be featured in + #: the sidebar menu (and possibly elsewhere); FAQs, Terms of Service, + #: and the like are examples of "featured" Document + is_featured = db.BooleanProperty( + verbose_name=ugettext('Is Featured')) + is_featured.help_text = ugettext( + 'Field used to indicate if a Work should be featured, for example,' + ' in the sidebar menu.') diff -r e4c2ccbeb25a -r 0e648c690bb7 app/soc/models/work.py --- a/app/soc/models/work.py Fri Jan 30 21:59:13 2009 +0000 +++ b/app/soc/models/work.py Fri Jan 30 21:59:38 2009 +0000 @@ -90,15 +90,6 @@ # * anyone, even those not logged in # (and possibly others) - #: field storing whether a link to the Work should be featured in - #: the sidebar menu (and possibly elsewhere); FAQs, Terms of Service, - #: and the like are examples of "featured" Works - is_featured = db.BooleanProperty( - verbose_name=ugettext('Is Featured')) - is_featured.help_text = ugettext( - 'Field used to indicate if a Work should be featured, for example,' - ' in the sidebar menu.') - def name(self): """Alias 'title' Property as 'name' for use in common templates. """