Add a ReferenceProperty pointing to a Terms of Service Document.
authorTodd Larsen <tlarsen@google.com>
Wed, 14 Jan 2009 20:05:05 +0000
changeset 805 6aaf4c33db0b
parent 804 13fcbd8598a4
child 806 7cc80b2c8479
Add a ReferenceProperty pointing to a Terms of Service Document. Patch by: Todd Larsen Review by: to-be-reviewed
app/soc/models/presence.py
--- a/app/soc/models/presence.py	Sat Jan 10 19:11:34 2009 +0000
+++ b/app/soc/models/presence.py	Wed Jan 14 20:05:05 2009 +0000
@@ -56,3 +56,12 @@
   feed_url.help_text = ugettext_lazy(
       'The URL should be a valid ATOM or RSS feed. '
       'Feed entries are shown on the home page.')
+
+  #: Reference to Document containing optional Terms of Service
+  tos = db.ReferenceProperty(
+    reference_class=soc.models.document.Document,
+    verbose_name=ugettext_lazy('Terms of Service'),
+    collection_name='tos')
+  tos.help_text = ugettext_lazy(
+      'Document containing optional Terms of Service for participating.')
+