Add a ReferenceProperty pointing to a Terms of Service Document.
Patch by: Todd Larsen
Review by: to-be-reviewed
--- 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.')
+