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
--- 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" <pawel.solyga@gmail.com>',
+ '"Sverre Rabbelier" <sverre@rabbelier.nl>',
]
+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.')
--- 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.
"""