app/soc/models/document.py
changeset 1416 6c94a1531ead
parent 1310 a3f654f30fbc
child 2957 f6515daaf000
--- a/app/soc/models/document.py	Sat Feb 21 00:30:53 2009 +0000
+++ b/app/soc/models/document.py	Sat Feb 21 00:33:59 2009 +0000
@@ -26,6 +26,7 @@
 
 from django.utils.translation import ugettext
 
+import soc.models.linkable
 import soc.models.work
 
 
@@ -79,3 +80,10 @@
   is_featured.help_text = ugettext(
       'Field used to indicate if a Work should be featured, for example,'
       ' in the sidebar menu.')
+
+  #: Reference to Document containing the contents of the "/home" page
+  home_for = db.ReferenceProperty(
+    reference_class=soc.models.linkable.Linkable,
+    collection_name='home_docs')
+  home_for.help_text = ugettext(
+      'The Precense this document is the home document for.')